[PATCH 04/10] wined3d: Add missing checkGLcall's to buffer_Map().
Henri Verbeet
hverbeet at codeweavers.com
Tue Mar 16 13:02:16 CDT 2010
---
dlls/wined3d/buffer.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index 46131af..6fefe87 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -1180,10 +1180,12 @@ static HRESULT STDMETHODCALLTYPE buffer_Map(IWineD3DBuffer *iface, UINT offset,
GLbitfield mapflags = buffer_gl_map_flags(flags);
This->resource.allocatedMemory = GL_EXTCALL(glMapBufferRange(This->buffer_type_hint, 0,
This->resource.size, mapflags));
+ checkGLcall("glMapBufferRange");
}
else
{
This->resource.allocatedMemory = GL_EXTCALL(glMapBufferARB(This->buffer_type_hint, GL_READ_WRITE_ARB));
+ checkGLcall("glMapBufferARB");
}
LEAVE_GL();
--
1.6.4.4
More information about the wine-patches
mailing list