From: Matteo Bruni Subject: wined3d: Rebind texture before checking for its content in check_fbo_compat(). (try 2) Message-Id: <1359240534-3566-1-git-send-email-mbruni@codeweavers.com> Date: Sat, 26 Jan 2013 23:48:54 +0100 --- dlls/wined3d/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index 985fc18..9ba3ca9 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -1126,6 +1126,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"); -- 1.7.12.4