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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_texture.c

    r69392 r78375  
    2020    unsigned char *data_ptr;
    2121    int packet_length;
    22     int noimagedata = (pixels == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     22    int noimagedata = (pixels == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    2323
    2424    packet_length =
     
    6363    unsigned char *data_ptr;
    6464    int packet_length;
    65     const int noimagedata = (pixels == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     65    const int noimagedata = (pixels == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    6666    const int is_distrib = ((type == GL_TRUE) || (type == GL_FALSE));
    6767    int distrib_buf_len = 0;
     
    139139    unsigned char *data_ptr;
    140140    int packet_length;
    141     int noimagedata = (pixels == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     141    int noimagedata = (pixels == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    142142    int is_distrib = ( (type == GL_TRUE) || (type == GL_FALSE) ) ;
    143143    int distrib_buf_len = 0;
     
    215215    unsigned char *data_ptr;
    216216    int packet_length;
    217     int noimagedata = (pixels == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     217    int noimagedata = (pixels == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    218218    int is_distrib = ( (type == GL_TRUE) || (type == GL_FALSE) ) ;
    219219    int distrib_buf_len = 0;
     
    561561    unsigned char *data_ptr;
    562562    int packet_length;
    563     int noimagedata = (pixels == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     563    int noimagedata = (pixels == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    564564
    565565    packet_length =
     
    614614    unsigned char *data_ptr;
    615615    int packet_length;
    616     int noimagedata = (pixels == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     616    int noimagedata = (pixels == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    617617
    618618    packet_length =
     
    660660    unsigned char *data_ptr;
    661661    int packet_length;
    662     int noimagedata = (pixels == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     662    int noimagedata = (pixels == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    663663
    664664    packet_length =
     
    732732    unsigned char *data_ptr;
    733733    int packet_length;
    734     int noimagedata = (data == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     734    int noimagedata = (data == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    735735
    736736    /* All extended opcodes have their first 8 bytes predefined:
     
    777777    unsigned char *data_ptr;
    778778    int packet_length;
    779     int noimagedata = (data == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     779    int noimagedata = (data == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    780780
    781781    /* All extended opcodes have their first 8 bytes predefined:
     
    825825    unsigned char *data_ptr;
    826826    int packet_length;
    827     int noimagedata = (data == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     827    int noimagedata = (data == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    828828
    829829    /* All extended opcodes have their first 8 bytes predefined:
     
    873873    unsigned char *data_ptr;
    874874    int packet_length;
    875     int noimagedata = (data == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     875    int noimagedata = (data == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    876876
    877877    /* All extended opcodes have their first 8 bytes predefined:
     
    917917    unsigned char *data_ptr;
    918918    int packet_length;
    919     int noimagedata = (data == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     919    int noimagedata = (data == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    920920
    921921    /* All extended opcodes have their first 8 bytes predefined:
     
    965965    unsigned char *data_ptr;
    966966    int packet_length;
    967     int noimagedata = (data == NULL) || crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB);
     967    int noimagedata = (data == NULL) || crStateIsBufferBound(g_pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB);
    968968
    969969    /* All extended opcodes have their first 8 bytes predefined:
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