[PATCH 2/6] wined3d: Disable EXT_TEXTURE_LOD_BIAS on core profile.

Matteo Bruni mbruni at codeweavers.com
Sun May 7 13:32:34 CDT 2017


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
glTexEnvf(..., GL_TEXTURE_LOD_BIAS, ...) is not available in core profile.
Just disable the extension for now.

 dlls/wined3d/directx.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index f5d4882..cff8a9b 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -4003,10 +4003,13 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter,
     if (gl_version >= MAKEDWORD_VERSION(4, 3))
         gl_info->supported[WINED3D_GL_VERSION_4_3] = TRUE;
 
-    /* All the points are actually point sprites in core contexts, the APIs from
-     * ARB_point_sprite are not supported anymore. */
+    /* We don't want to enable the codepaths depending on those flags in core
+     * profile contexts. */
     if (!gl_info->supported[WINED3D_GL_LEGACY_CONTEXT])
+    {
         gl_info->supported[ARB_POINT_SPRITE] = FALSE;
+        gl_info->supported[EXT_TEXTURE_LOD_BIAS] = FALSE;
+    }
 
     if (gl_info->supported[APPLE_FENCE])
     {
-- 
2.10.2




More information about the wine-patches mailing list