wined3d: Add missing checkGLcall's to buffer_Map().

This commit is contained in:
Henri Verbeet 2010-03-16 19:02:16 +01:00 committed by Alexandre Julliard
parent 570f865bad
commit ec10c1ed8d
1 changed files with 2 additions and 0 deletions

View File

@ -1180,10 +1180,12 @@ static HRESULT STDMETHODCALLTYPE buffer_Map(IWineD3DBuffer *iface, UINT offset,
GLbitfield mapflags = buffer_gl_map_flags(flags); GLbitfield mapflags = buffer_gl_map_flags(flags);
This->resource.allocatedMemory = GL_EXTCALL(glMapBufferRange(This->buffer_type_hint, 0, This->resource.allocatedMemory = GL_EXTCALL(glMapBufferRange(This->buffer_type_hint, 0,
This->resource.size, mapflags)); This->resource.size, mapflags));
checkGLcall("glMapBufferRange");
} }
else else
{ {
This->resource.allocatedMemory = GL_EXTCALL(glMapBufferARB(This->buffer_type_hint, GL_READ_WRITE_ARB)); This->resource.allocatedMemory = GL_EXTCALL(glMapBufferARB(This->buffer_type_hint, GL_READ_WRITE_ARB));
checkGLcall("glMapBufferARB");
} }
LEAVE_GL(); LEAVE_GL();