Matteo Bruni : wined3d: Report WINED3DPRASTERCAPS_MIPMAPLODBIAS only when supported.
Alexandre Julliard
julliard at winehq.org
Thu May 16 16:26:58 CDT 2019
Module: wine
Branch: master
Commit: 6f38a7443c12d0d8cbfa5d26433cb2a2b7bcd015
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6f38a7443c12d0d8cbfa5d26433cb2a2b7bcd015
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Wed May 15 23:39:32 2019 +0200
wined3d: Report WINED3DPRASTERCAPS_MIPMAPLODBIAS only when supported.
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 2837f6e..5524f94 100644
--- a/dlls/wined3d/adapter_gl.c
+++ b/dlls/wined3d/adapter_gl.c
@@ -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;
More information about the wine-cvs
mailing list