[PATCH 1/5] wined3d: Disable GL_TEXTURE_2D again in check_filter().

Henri Verbeet hverbeet at codeweavers.com
Wed Nov 23 07:30:27 CST 2016


To avoid breaking subsequent tests. In particular
wined3d_adapter_find_polyoffset_scale() when draw_test_quad() isn't using
GLSL.

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 dlls/wined3d/utils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 1255a9a..6a19012 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -3021,6 +3021,7 @@ static BOOL check_filter(const struct wined3d_gl_info *gl_info, GLenum internal)
     gl_info->fbo_ops.glDeleteFramebuffers(1, &fbo);
     gl_info->gl_ops.gl.p_glDeleteTextures(1, &tex);
     gl_info->gl_ops.gl.p_glDeleteTextures(1, &buffer);
+    gl_info->gl_ops.gl.p_glDisable(GL_TEXTURE_2D);
 
     if (gl_info->gl_ops.gl.p_glGetError())
     {
-- 
2.1.4




More information about the wine-patches mailing list