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

This commit is contained in:
Matteo Bruni 2013-01-26 23:48:54 +01:00 committed by Alexandre Julliard
parent ab8276fe91
commit 59171c06ce
1 changed files with 2 additions and 0 deletions

View File

@ -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");