VirtualBox

Ignore:
Timestamp:
Apr 10, 2019 11:27:46 AM (6 years ago)
Author:
vboxsync
Message:

GuestHost/OpenGL,HostServices/SharedOpenGL: Windows build fix for r129932

Location:
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
Files:
2 edited

Legend:

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

    r78076 r78078  
    127127        local_argname = 'local_%s' % lastParam[0]
    128128
     129        print('\tunsigned int cComponents = 0;');
    129130        print('\t%s %s[%d] = { 0 };' % ( local_argtype, local_argname, max_components[func_name] ))
    130131        print('\t(void) %s;' % lastParam[0])
     
    142143            print('\tcrServerReturnValue(&(%s[0]), %d*sizeof(%s));' % (local_argname, max_components[func_name], local_argtype ))
    143144        else:
    144             print('\tunsigned int cComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(%s));' % local_argname)
     145            print('\tcComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(%s));' % local_argname)
    145146            print('\tcrServerReturnValue(&(%s[0]), cComponents*sizeof(%s));' % (local_argname, local_argtype ))
    146147        print ('}\n')
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_texture.c

    r78076 r78078  
    169169void SERVER_DISPATCH_APIENTRY crServerDispatchGetTexEnvfv( GLenum target, GLenum pname, GLfloat * params )
    170170{
     171    size_t cComponents = 0;
    171172    GLfloat local_params[4] = {0};
    172173    (void) params;
     
    176177        crStateGetTexEnvfv( target, pname, local_params );
    177178
    178     size_t cComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(local_params));
     179    cComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(local_params));
    179180    crServerReturnValue( &(local_params[0]), cComponents*sizeof (GLfloat) );
    180181}
     
    182183void SERVER_DISPATCH_APIENTRY crServerDispatchGetTexEnviv( GLenum target, GLenum pname, GLint * params )
    183184{
     185    size_t cComponents = 0;
    184186    GLint local_params[4] = {0};
    185187    (void) params;
     
    189191        crStateGetTexEnviv( target, pname, local_params );
    190192
    191     size_t cComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(local_params));
     193    cComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(local_params));
    192194    crServerReturnValue( &(local_params[0]), cComponents*sizeof (GLint) );
    193195}
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