wined3d: Add ENTER_GL/LEAVE_GL in surface_allocate_surface.

This commit is contained in:
Alexander Dorofeyev 2008-04-03 00:11:54 +03:00 committed by Alexandre Julliard
parent d5b400307b
commit 088c34ec1c
1 changed files with 2 additions and 0 deletions

View File

@ -301,8 +301,10 @@ static void surface_allocate_surface(IWineD3DSurfaceImpl *This, GLenum internal,
/* Neither NONPOW2, DIBSECTION nor OVERSIZE flags can be set on compressed textures */ /* Neither NONPOW2, DIBSECTION nor OVERSIZE flags can be set on compressed textures */
This->Flags |= SFLAG_CLIENT; This->Flags |= SFLAG_CLIENT;
mem = (BYTE *)(((ULONG_PTR) This->resource.heapMemory + (RESOURCE_ALIGNMENT - 1)) & ~(RESOURCE_ALIGNMENT - 1)); mem = (BYTE *)(((ULONG_PTR) This->resource.heapMemory + (RESOURCE_ALIGNMENT - 1)) & ~(RESOURCE_ALIGNMENT - 1));
ENTER_GL();
GL_EXTCALL(glCompressedTexImage2DARB(This->glDescription.target, This->glDescription.level, internal, GL_EXTCALL(glCompressedTexImage2DARB(This->glDescription.target, This->glDescription.level, internal,
width, height, 0 /* border */, This->resource.size, mem)); width, height, 0 /* border */, This->resource.size, mem));
LEAVE_GL();
} }
return; return;