VirtualBox

Changeset 38142 in vbox for trunk


Ignore:
Timestamp:
Jul 25, 2011 10:52:11 AM (13 years ago)
Author:
vboxsync
Message:

crogl: correctly report texunits number as MIN(cr supports, gpu supports)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_simpleget.py

    r31808 r38142  
    107107        *get_values = (%s) crStateBufferHWIDtoID(bufid);
    108108    }
    109     """ % (types[index], types[index], types[index], types[index], types[index], types[index], types[index], types[index], types[index], types[index])
     109    else if (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS==pname)
     110    {
     111        if (CR_MAX_TEXTURE_UNITS < (GLuint)*get_values)
     112        {
     113                *get_values = (%s)CR_MAX_TEXTURE_UNITS;
     114        }
     115    }
     116    """ % (types[index], types[index], types[index], types[index], types[index], types[index], types[index], types[index], types[index], types[index], types[index])
    110117    print '\tcrServerReturnValue( get_values, tablesize );'
    111118    print '\tcrFree(get_values);'
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