VirtualBox

Ignore:
Timestamp:
May 3, 2019 9:51:02 PM (6 years ago)
Author:
vboxsync
Message:

Additions/common/crOpengl,GuestHost/OpenGL,HostServices/SharedOpenGL: Eliminate all global variables from the state tracker library (state_tracker) in preparation of the SPU DLL merging, bugref:9435

Location:
trunk/src/VBox/HostServices/SharedOpenGL/unpacker
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.cpp

    r78191 r78375  
    88#include "unpack_extend.h"
    99#include "unpacker.h"
    10 #include "cr_glstate.h"
    1110
    1211
     
    292291    int numenabled = READ_DATA(pState, sizeof(int) + 12, int);
    293292
    294     CRContext *g = crStateGetCurrent();
     293    CRContext *g = crStateGetCurrent(pState->pStateTracker);
    295294    CRClientState *c = &g->client;
    296295    CRClientPointer *cp;
     
    364363{
    365364    int i;
    366     CRContext *g = crStateGetCurrent();
     365    CRContext *g = crStateGetCurrent(pState->pStateTracker);
    367366    CRClientState *c = &g->client;
    368367    CRClientPointer *cp;
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_drawpixels.cpp

    r78190 r78375  
    2222    GLvoid *pixels;
    2323
    24     if (noimagedata && !crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
     24    if (noimagedata && !crStateIsBufferBound(pState->pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB))
    2525        return;
    2626
     
    6363    GLubyte *bitmap;
    6464
    65     if (noimagedata && !crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
     65    if (noimagedata && !crStateIsBufferBound(pState->pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB))
    6666        return;
    6767
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_misc.cpp

    r78190 r78375  
    5454    const GLuint *ids = DATA_POINTER(pState, 12, GLuint);
    5555
    56     if (n <= 0 || n >= INT32_MAX / sizeof(GLint) / 4 || !DATA_POINTER_CHECK(pState, 12 + n * sizeof(GLuint)))
     56    if (n < 0 || n >= INT32_MAX / sizeof(GLint) / 4 || !DATA_POINTER_CHECK(pState, 12 + n * sizeof(GLuint)))
    5757    {
    5858        crError("crUnpackExtendDeleteQueriesARB: parameter 'n' is out of range");
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_pixelmap.cpp

    r78212 r78375  
    1717    GLfloat *values;
    1818
    19     if (nodata && !crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
     19    if (nodata && !crStateIsBufferBound(pState->pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB))
    2020        return;
    2121
     
    4747    GLuint *values;
    4848
    49     if (nodata && !crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
     49    if (nodata && !crStateIsBufferBound(pState->pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB))
    5050        return;
    5151
     
    7777    GLushort *values;
    7878
    79     if (nodata && !crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
     79    if (nodata && !crStateIsBufferBound(pState->pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB))
    8080        return;
    8181
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