Commit 6f38a744 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Report WINED3DPRASTERCAPS_MIPMAPLODBIAS only when supported.

parent 0f209a93
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment