From 809741d5ae2cd3d1f914862bbe68351dba09d407 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 5 Nov 2010 11:17:42 +0100 Subject: [PATCH] wined3d: Move the checkGLcall() right after the corresponding GL call. --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 6e78f04552d..3221ea8b39f 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -5868,8 +5868,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetCursorProperties(IWineD3DDevice *ifa checkGLcall("glBindTexture"); /* Copy the bitmap memory into the cursor texture */ glTexImage2D(GL_TEXTURE_2D, 0, intfmt, width, height, 0, gl_format, type, mem); - HeapFree(GetProcessHeap(), 0, mem); checkGLcall("glTexImage2D"); + HeapFree(GetProcessHeap(), 0, mem); if (gl_info->supported[APPLE_CLIENT_STORAGE]) {