Changeset 78078 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Timestamp:
- Apr 10, 2019 11:27:46 AM (6 years ago)
- 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 127 127 local_argname = 'local_%s' % lastParam[0] 128 128 129 print('\tunsigned int cComponents = 0;'); 129 130 print('\t%s %s[%d] = { 0 };' % ( local_argtype, local_argname, max_components[func_name] )) 130 131 print('\t(void) %s;' % lastParam[0]) … … 142 143 print('\tcrServerReturnValue(&(%s[0]), %d*sizeof(%s));' % (local_argname, max_components[func_name], local_argtype )) 143 144 else: 144 print('\t unsigned intcComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(%s));' % local_argname)145 print('\tcComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(%s));' % local_argname) 145 146 print('\tcrServerReturnValue(&(%s[0]), cComponents*sizeof(%s));' % (local_argname, local_argtype )) 146 147 print ('}\n') -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_texture.c
r78076 r78078 169 169 void SERVER_DISPATCH_APIENTRY crServerDispatchGetTexEnvfv( GLenum target, GLenum pname, GLfloat * params ) 170 170 { 171 size_t cComponents = 0; 171 172 GLfloat local_params[4] = {0}; 172 173 (void) params; … … 176 177 crStateGetTexEnvfv( target, pname, local_params ); 177 178 178 size_tcComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(local_params));179 cComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(local_params)); 179 180 crServerReturnValue( &(local_params[0]), cComponents*sizeof (GLfloat) ); 180 181 } … … 182 183 void SERVER_DISPATCH_APIENTRY crServerDispatchGetTexEnviv( GLenum target, GLenum pname, GLint * params ) 183 184 { 185 size_t cComponents = 0; 184 186 GLint local_params[4] = {0}; 185 187 (void) params; … … 189 191 crStateGetTexEnviv( target, pname, local_params ); 190 192 191 size_tcComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(local_params));193 cComponents = RT_MIN(crStateHlpComponentsCount(pname), RT_ELEMENTS(local_params)); 192 194 crServerReturnValue( &(local_params[0]), cComponents*sizeof (GLint) ); 193 195 }
Note:
See TracChangeset
for help on using the changeset viewer.