Changeset 33045 in vbox
- Timestamp:
- Oct 11, 2010 4:57:21 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_getshaders.c
r28800 r33045 163 163 164 164 if (length) *length=*pLocal; 165 crMemcpy(infoLog, &pLocal[1], ( *pLocal)+1);165 crMemcpy(infoLog, &pLocal[1], (bufSize >= pLocal[0]) ? pLocal[0] : bufSize); 166 166 crFree(pLocal); 167 167 } … … 185 185 186 186 if (length) *length=*pLocal; 187 crMemcpy(infoLog, &pLocal[1], ( *pLocal)+1);187 crMemcpy(infoLog, &pLocal[1], (bufSize >= pLocal[0]) ? pLocal[0] : bufSize); 188 188 crFree(pLocal); 189 189 } … … 207 207 208 208 if (length) *length=*pLocal; 209 crMemcpy(source, &pLocal[1], ( *pLocal)+1);210 crFree(pLocal); 211 } 209 crMemcpy(source, &pLocal[1], (bufSize >= pLocal[0]) ? pLocal[0] : bufSize); 210 crFree(pLocal); 211 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getshaders.c
r28800 r33045 144 144 } 145 145 cr_server.head_spu->dispatch_table.GetShaderInfoLog(crStateGetShaderHWID(shader), bufSize, pLocal, (char*)&pLocal[1]); 146 crServerReturnValue(pLocal, (*pLocal)+1+sizeof(GLsizei));146 crServerReturnValue(pLocal, pLocal[0]+sizeof(GLsizei)); 147 147 crFree(pLocal); 148 148 } … … 159 159 } 160 160 cr_server.head_spu->dispatch_table.GetProgramInfoLog(crStateGetProgramHWID(program), bufSize, pLocal, (char*)&pLocal[1]); 161 crServerReturnValue(pLocal, (*pLocal)+1+sizeof(GLsizei));161 crServerReturnValue(pLocal, pLocal[0]+sizeof(GLsizei)); 162 162 crFree(pLocal); 163 163 } … … 174 174 } 175 175 cr_server.head_spu->dispatch_table.GetShaderSource(crStateGetShaderHWID(shader), bufSize, pLocal, (char*)&pLocal[1]); 176 crServerReturnValue(pLocal, (*pLocal)+1+sizeof(GLsizei));176 crServerReturnValue(pLocal, pLocal[0]+sizeof(GLsizei)); 177 177 crFree(pLocal); 178 178 } … … 280 280 } 281 281 282 void SERVER_DISPATCH_APIENTRY crServerDispatchGetObjectParameterfvARB( GLhandleARB obj, GLenum pname, GLfloat * params ) 283 { 284 GLfloat local_params[1]; 285 GLuint hwid = crStateGetProgramHWID(obj); 286 (void) params; 287 288 if (!hwid) 289 { 290 hwid = crStateGetShaderHWID(obj); 291 if (!hwid) 292 { 293 crWarning("Unknown object %i, in crServerDispatchGetObjectParameterfvARB", obj); 294 } 295 } 296 297 cr_server.head_spu->dispatch_table.GetObjectParameterfvARB( hwid, pname, local_params ); 298 crServerReturnValue( &(local_params[0]), 1*sizeof(GLfloat) ); 299 } 300 301 void SERVER_DISPATCH_APIENTRY crServerDispatchGetObjectParameterivARB( GLhandleARB obj, GLenum pname, GLint * params ) 302 { 303 GLint local_params[1]; 304 GLuint hwid = crStateGetProgramHWID(obj); 305 if (!hwid) 306 { 307 hwid = crStateGetShaderHWID(obj); 308 if (!hwid) 309 { 310 crWarning("Unknown object %i, in crServerDispatchGetObjectParameterivARB", obj); 311 } 312 } 313 314 (void) params; 315 cr_server.head_spu->dispatch_table.GetObjectParameterivARB( hwid, pname, local_params ); 316 crServerReturnValue( &(local_params[0]), 1*sizeof(GLint) ); 317 } 282 318 #endif /* #ifdef CR_OPENGL_VERSION_2_0 */ -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_special
r32240 r33045 243 243 GetUniformLocation 244 244 CopyTexSubImage2D 245 GetObjectParameterivARB 246 GetObjectParameterfvARB
Note:
See TracChangeset
for help on using the changeset viewer.