Matteo Bruni : wined3d: Skip match_allows_spec_alpha() on core profile.

Alexandre Julliard julliard at winehq.org
Mon May 14 17:20:09 CDT 2018


Module: wine
Branch: master
Commit: ac213630d93658f4d243b7d206a0aac0b93f55d5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ac213630d93658f4d243b7d206a0aac0b93f55d5

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Thu May  3 00:04:03 2018 +0200

wined3d: Skip match_allows_spec_alpha() on core profile.

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/directx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 164f9c9..5e10cb1 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -674,7 +674,7 @@ static BOOL match_allows_spec_alpha(const struct wined3d_gl_info *gl_info, struc
     GLenum error;
     DWORD data[16];
 
-    if (!gl_info->supported[EXT_SECONDARY_COLOR])
+    if (!gl_info->supported[EXT_SECONDARY_COLOR] || !gl_info->supported[WINED3D_GL_LEGACY_CONTEXT])
         return FALSE;
 
     while (gl_info->gl_ops.gl.p_glGetError());




More information about the wine-cvs mailing list