wined3d: Move the checkGLcall() right after the corresponding GL call.

This commit is contained in:
Michael Stefaniuc 2010-11-05 11:17:42 +01:00 committed by Alexandre Julliard
parent 8f24cd05b1
commit 809741d5ae
1 changed files with 1 additions and 1 deletions

View File

@ -5868,8 +5868,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetCursorProperties(IWineD3DDevice *ifa
checkGLcall("glBindTexture"); checkGLcall("glBindTexture");
/* Copy the bitmap memory into the cursor texture */ /* Copy the bitmap memory into the cursor texture */
glTexImage2D(GL_TEXTURE_2D, 0, intfmt, width, height, 0, gl_format, type, mem); glTexImage2D(GL_TEXTURE_2D, 0, intfmt, width, height, 0, gl_format, type, mem);
HeapFree(GetProcessHeap(), 0, mem);
checkGLcall("glTexImage2D"); checkGLcall("glTexImage2D");
HeapFree(GetProcessHeap(), 0, mem);
if (gl_info->supported[APPLE_CLIENT_STORAGE]) if (gl_info->supported[APPLE_CLIENT_STORAGE])
{ {