wined3d: Rebind texture before checking for its content in check_fbo_compat().

Matteo Bruni mbruni at codeweavers.com
Sat Jan 26 15:32:41 CST 2013


---
 dlls/wined3d/utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 985fc18..43ede83 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 the FBO to workaround a fglrx bug. */
+            gl_info->fbo_ops.glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex, 0);
             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




More information about the wine-patches mailing list