VirtualBox

Changeset 70601 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Jan 16, 2018 4:26:58 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120311
Message:

3D: SharedOpenGL code cleanup, bugref:9043

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_pixel.c

    r69392 r70601  
    312312void STATE_APIENTRY crStatePixelMapuiv (GLenum map, GLint mapsize, const GLuint * values)
    313313{
    314     GLfloat fvalues[CR_MAX_PIXEL_MAP_TABLE];
    315     GLint i;
     314    if (mapsize < 0 || mapsize > CR_MAX_PIXEL_MAP_TABLE)
     315    {
     316        crError("crStatePixelMapuiv: parameter 'mapsize' is out of range");
     317        return;
     318    }
    316319
    317320    if (!crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
    318321    {
     322        GLfloat fvalues[CR_MAX_PIXEL_MAP_TABLE];
     323        GLint i;
     324
    319325        if (map==GL_PIXEL_MAP_I_TO_I || map==GL_PIXEL_MAP_S_TO_S) {
    320326           for (i=0;i<mapsize;i++) {
Note: See TracChangeset for help on using the changeset viewer.

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