mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wined3d: Report WINED3DPRASTERCAPS_MIPMAPLODBIAS only when supported.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0f209a9301
commit
6f38a7443c
1 changed files with 4 additions and 2 deletions
|
@ -4345,11 +4345,13 @@ static void adapter_gl_get_wined3d_caps(const struct wined3d_adapter *adapter, s
|
|||
if (gl_info->supported[ARB_FRAMEBUFFER_SRGB])
|
||||
caps->PrimitiveMiscCaps |= WINED3DPMISCCAPS_POSTBLENDSRGBCONVERT;
|
||||
|
||||
if (gl_info->supported[ARB_SAMPLER_OBJECTS] || gl_info->supported[EXT_TEXTURE_LOD_BIAS])
|
||||
caps->RasterCaps |= WINED3DPRASTERCAPS_MIPMAPLODBIAS;
|
||||
|
||||
if (gl_info->supported[ARB_TEXTURE_FILTER_ANISOTROPIC])
|
||||
{
|
||||
caps->RasterCaps |= WINED3DPRASTERCAPS_ANISOTROPY
|
||||
| WINED3DPRASTERCAPS_ZBIAS
|
||||
| WINED3DPRASTERCAPS_MIPMAPLODBIAS;
|
||||
| WINED3DPRASTERCAPS_ZBIAS;
|
||||
|
||||
caps->TextureFilterCaps |= WINED3DPTFILTERCAPS_MAGFANISOTROPIC
|
||||
| WINED3DPTFILTERCAPS_MINFANISOTROPIC;
|
||||
|
|
Loading…
Reference in a new issue