Alexander Dorofeyev : wined3d: Add ENTER_GL/ LEAVE_GL in surface_allocate_surface.

Alexandre Julliard julliard at winehq.org
Thu Apr 3 05:43:52 CDT 2008


Module: wine
Branch: master
Commit: 088c34ec1c465728b5cb2d07bb1d69958bbc5279
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=088c34ec1c465728b5cb2d07bb1d69958bbc5279

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Thu Apr  3 00:11:54 2008 +0300

wined3d: Add ENTER_GL/LEAVE_GL in surface_allocate_surface.

---

 dlls/wined3d/surface.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index e233ce2..d164c2f 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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 */
             This->Flags |= SFLAG_CLIENT;
             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,
                        width, height, 0 /* border */, This->resource.size, mem));
+            LEAVE_GL();
         }
 
         return;




More information about the wine-cvs mailing list