From 59171c06ceadcd0138c025a9fbe3d756ba8fdbc8 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Sat, 26 Jan 2013 23:48:54 +0100 Subject: [PATCH] wined3d: Rebind texture before checking for its content in check_fbo_compat(). --- dlls/wined3d/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index bcdc8c87b7c..e395beec434 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -1171,6 +1171,8 @@ static void check_fbo_compat(const struct wined3d_gl_info *gl_info, struct wined gl_info->gl_ops.gl.p_glDisable(GL_BLEND); + /* Rebinding texture to workaround a fglrx bug. */ + gl_info->gl_ops.gl.p_glBindTexture(GL_TEXTURE_2D, tex); gl_info->gl_ops.gl.p_glGetTexImage(GL_TEXTURE_2D, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, readback); checkGLcall("Post-pixelshader blending check");