wined3d: Rebind texture before checking for its content in check_fbo_compat(). (try 2)
Matteo Bruni
mbruni at codeweavers.com
Sat Jan 26 16:48:54 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..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
More information about the wine-patches
mailing list