wined3d: Properly set WINED3DFMT_FLAG_FILTERING in init_format_texture_info().
This commit is contained in:
parent
3f21757702
commit
6527277a58
|
@ -3485,8 +3485,7 @@ static BOOL CheckDepthStencilCapability(const struct wined3d_adapter *adapter,
|
|||
static BOOL CheckFilterCapability(const struct wined3d_adapter *adapter, const struct wined3d_format *format)
|
||||
{
|
||||
/* The flags entry of a format contains the filtering capability */
|
||||
if ((format->flags & WINED3DFMT_FLAG_FILTERING)
|
||||
|| !(adapter->gl_info.quirks & WINED3D_QUIRK_LIMITED_TEX_FILTERING))
|
||||
if (format->flags & WINED3DFMT_FLAG_FILTERING)
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
|
|
|
@ -1287,6 +1287,9 @@ static BOOL init_format_texture_info(struct wined3d_adapter *adapter, struct win
|
|||
format->height_scale.numerator = 1;
|
||||
format->height_scale.denominator = 1;
|
||||
|
||||
if (!(gl_info->quirks & WINED3D_QUIRK_LIMITED_TEX_FILTERING))
|
||||
format->flags |= WINED3DFMT_FLAG_FILTERING;
|
||||
|
||||
if (format->glGammaInternal != format->glInternal)
|
||||
{
|
||||
/* Filter sRGB capabilities if EXT_texture_sRGB is not supported. */
|
||||
|
|
Loading…
Reference in New Issue