VirtualBox

Ignore:
Timestamp:
Feb 12, 2009 7:01:48 PM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: another 8x speed up for compiz, xdamage but without regions info yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/load.c

    r16640 r16718  
    7474static ClearFunc_t origClear;
    7575static ViewportFunc_t origViewport;
     76static SwapBuffersFunc_t origSwapBuffers;
     77static DrawBufferFunc_t origDrawBuffer;
    7678
    7779static void stubCheckWindowState(void)
     
    152154}
    153155
     156static void SPU_APIENTRY trapSwapBuffers(GLint window, GLint flags)
     157{
     158    stubCheckWindowState();
     159    origSwapBuffers(window, flags);
     160}
     161
     162static void SPU_APIENTRY trapDrawBuffer(GLenum buf)
     163{
     164    stubCheckWindowState();
     165    origDrawBuffer(buf);
     166}
    154167
    155168/**
     
    166179        origClear = stub.spuDispatch.Clear;
    167180        origViewport = stub.spuDispatch.Viewport;
     181        origSwapBuffers = stub.spuDispatch.SwapBuffers;
     182        origDrawBuffer = stub.spuDispatch.DrawBuffer;
    168183        stub.spuDispatch.Clear = trapClear;
    169184        stub.spuDispatch.Viewport = trapViewport;
     185        /*stub.spuDispatch.SwapBuffers = trapSwapBuffers;
     186        stub.spuDispatch.DrawBuffer = trapDrawBuffer;*/
    170187    }
    171188
     
    297314#elif defined(GLX)
    298315    defaultWin->pVisibleRegions = NULL;
     316    defaultWin->cVisibleRegions = 0;
    299317#endif
    300318    crHashtableAdd(stub.windowTable, 0, defaultWin);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette