commit 8caf5a9013ca899adf28e081af8017433625f53f Author: Matteo Bruni Date: Sat Oct 24 00:46:15 2015 +0200 wined3d: Don't modify legacy GL states when blitting on core profile. diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index fe9a011825..3a067ddc9c 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -2893,9 +2893,12 @@ void context_apply_blit_state(struct wined3d_context *context, const struct wine context_invalidate_state(context, STATE_SAMPLER(sampler)); } - gl_info->gl_ops.gl.p_glDisable(GL_ALPHA_TEST); - checkGLcall("glDisable(GL_ALPHA_TEST)"); - context_invalidate_state(context, STATE_RENDER(WINED3D_RS_ALPHATESTENABLE)); + if (gl_info->supported[WINED3D_GL_LEGACY_CONTEXT]) + { + gl_info->gl_ops.gl.p_glDisable(GL_ALPHA_TEST); + checkGLcall("glDisable(GL_ALPHA_TEST)"); + context_invalidate_state(context, STATE_RENDER(WINED3D_RS_ALPHATESTENABLE)); + } gl_info->gl_ops.gl.p_glDisable(GL_DEPTH_TEST); checkGLcall("glDisable(GL_DEPTH_TEST)"); context_invalidate_state(context, STATE_RENDER(WINED3D_RS_ZENABLE));