[PATCH 5/5] wined3d: Report WINED3DPRASTERCAPS_MIPMAPLODBIAS only when supported.
Matteo Bruni
mbruni at codeweavers.com
Wed May 15 16:39:32 CDT 2019
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
dlls/wined3d/adapter_gl.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/adapter_gl.c b/dlls/wined3d/adapter_gl.c
index 51f26fefe98..8061740eb37 100644
--- a/dlls/wined3d/adapter_gl.c
+++ b/dlls/wined3d/adapter_gl.c
@@ -4355,11 +4355,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;
--
2.21.0
More information about the wine-devel
mailing list