From 1e64bb93a4760a00bbaeeb23bb03bb0372a2f69a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 4 Jun 2007 19:42:04 -0700 Subject: [PATCH] wined3d: Add a few missing checkGLcall calls. --- dlls/wined3d/device.c | 2 ++ dlls/wined3d/surface.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 9a532a2394..61e388866f 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -5591,9 +5591,11 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED if (flip) { GL_EXTCALL(glBlitFramebufferEXT(src_rect->x1, src_rect->y1, src_rect->x2, src_rect->y2, dst_rect->x1, dst_rect->y2, dst_rect->x2, dst_rect->y1, mask, gl_filter)); + checkGLcall("glBlitFramebuffer()"); } else { GL_EXTCALL(glBlitFramebufferEXT(src_rect->x1, src_rect->y1, src_rect->x2, src_rect->y2, dst_rect->x1, dst_rect->y1, dst_rect->x2, dst_rect->y2, mask, gl_filter)); + checkGLcall("glBlitFramebuffer()"); } if (This->render_offscreen) { diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index fe2fc08c40..4cb29efffa 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -2943,6 +2943,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT * if(!dstSwapchain) { TRACE("Drawing to offscreen buffer\n"); glDrawBuffer(myDevice->offscreenBuffer); + checkGLcall("glDrawBuffer"); } else { GLenum buffer = surface_get_gl_buffer((IWineD3DSurface *)This, (IWineD3DSwapChain *)dstSwapchain); TRACE("Drawing to %#x buffer\n", buffer); @@ -3016,6 +3017,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT * */ if(dstSwapchain && This == (IWineD3DSurfaceImpl *) dstSwapchain->frontBuffer && dstSwapchain->backBuffer) { glDrawBuffer(GL_BACK); + checkGLcall("glDrawBuffer"); } /* Restore the color key parameters */ Src->CKeyFlags = oldCKeyFlags; -- 2.32.0.93.g670b81a890