Changeset 20392 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jun 8, 2009 11:08:08 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_getstring.c
r20182 r20392 70 70 } 71 71 72 #ifdef CR_OPENGL_VERSION_2_0 73 static GLubyte gpszShadingVersion[255]=""; 74 #endif 72 75 73 76 const GLubyte * PACKSPU_APIENTRY packspu_GetString( GLenum name ) 74 77 { 75 78 GET_CONTEXT(ctx); 79 76 80 if (name == GL_EXTENSIONS) 77 81 { … … 84 88 return (const GLubyte *) ctx->glVersion; 85 89 } 90 #ifdef CR_OPENGL_VERSION_2_0 91 else if (name == GL_SHADING_LANGUAGE_VERSION) 92 { 93 GET_THREAD(thread); 94 int writeback = 1; 95 96 crPackGetString(GL_SHADING_LANGUAGE_VERSION, gpszShadingVersion, &writeback); 97 packspuFlush( (void *) thread ); 98 99 while (writeback) 100 crNetRecv(); 101 102 return gpszShadingVersion; 103 } 104 #endif 86 105 else 87 106 {
Note:
See TracChangeset
for help on using the changeset viewer.