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

Alexandre Julliard julliard at winehq.org
Tue Jan 29 12:35:42 CST 2013


Module: wine
Branch: master
Commit: 59171c06ceadcd0138c025a9fbe3d756ba8fdbc8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=59171c06ceadcd0138c025a9fbe3d756ba8fdbc8

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Sat Jan 26 23:48:54 2013 +0100

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

---

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

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index bcdc8c8..e395bee 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");
 




More information about the wine-cvs mailing list