Henri Verbeet : wined3d: Set the read buffer to GL_NONE in surface_load_ds_location().

Alexandre Julliard julliard at winehq.org
Wed Aug 3 12:48:09 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Aug  2 21:42:13 2011 +0200

wined3d: Set the read buffer to GL_NONE in surface_load_ds_location().

On GL implementations that don't support GL_ARB_ES2_compatibility the
framebuffer's read buffer has to be valid, even if we're not reading from it.

---

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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index c13beb0..6fb704e 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -5743,6 +5743,7 @@ void surface_load_ds_location(struct wined3d_surface *surface, struct wined3d_co
         context_apply_fbo_state_blit(context, GL_FRAMEBUFFER,
                 NULL, surface, SFLAG_INTEXTURE);
         context_set_draw_buffer(context, GL_NONE);
+        glReadBuffer(GL_NONE);
 
         /* Do the actual blit */
         surface_depth_blt(surface, gl_info, device->depth_blt_texture, 0, 0, w, h, bind_target);




More information about the wine-cvs mailing list