[PATCH 3/5] wined3d: Add a couple checkGLcall() in surface_prepare_rb().

Matteo Bruni mbruni at codeweavers.com
Fri Feb 27 06:18:21 CST 2015


---
 dlls/wined3d/surface.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 36806ec..c045591 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2923,6 +2923,7 @@ void surface_prepare_rb(struct wined3d_surface *surface, const struct wined3d_gl
         gl_info->fbo_ops.glBindRenderbuffer(GL_RENDERBUFFER, surface->rb_multisample);
         gl_info->fbo_ops.glRenderbufferStorageMultisample(GL_RENDERBUFFER, surface->resource.multisample_type,
                 surface->resource.format->glInternal, surface->pow2Width, surface->pow2Height);
+        checkGLcall("glRenderbufferStorageMultisample()");
         TRACE("Created multisample rb %u.\n", surface->rb_multisample);
     }
     else
@@ -2934,6 +2935,7 @@ void surface_prepare_rb(struct wined3d_surface *surface, const struct wined3d_gl
         gl_info->fbo_ops.glBindRenderbuffer(GL_RENDERBUFFER, surface->rb_resolved);
         gl_info->fbo_ops.glRenderbufferStorage(GL_RENDERBUFFER, surface->resource.format->glInternal,
                 surface->pow2Width, surface->pow2Height);
+        checkGLcall("glRenderbufferStorage()");
         TRACE("Created resolved rb %u.\n", surface->rb_resolved);
     }
 }
-- 
2.0.5




More information about the wine-patches mailing list