Changeset 20401 in vbox
- Timestamp:
- Jun 8, 2009 1:08:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_getstring.c
r20392 r20401 10 10 #include "cr_string.h" 11 11 #include "packspu_proto.h" 12 13 static GLubyte gpszExtensions[10000]; 14 #ifdef CR_OPENGL_VERSION_2_0 15 static GLubyte gpszShadingVersion[255]=""; 16 #endif 12 17 13 18 static const GLubyte * … … 41 46 ext = crStateMergeExtensions(1, &extensions); 42 47 43 return ext; /* XXX we should return a static string here! */ 48 #ifdef CR_OPENGL_VERSION_2_0 49 /* This extension is a core part of opengl 2.0, yet 50 * some apps (like glview) request us to have this extension. 51 * @todo, check if host supports opengl 2.0 or this extension 52 * before exporting it. 53 */ 54 sprintf(gpszExtensions, "%s GL_ARB_shading_language_100", ext); 55 #else 56 sprintf(gpszExtensions, "%s", ext); 57 #endif 58 59 return gpszExtensions; 44 60 } 45 61 … … 69 85 return version; 70 86 } 71 72 #ifdef CR_OPENGL_VERSION_2_073 static GLubyte gpszShadingVersion[255]="";74 #endif75 87 76 88 const GLubyte * PACKSPU_APIENTRY packspu_GetString( GLenum name )
Note:
See TracChangeset
for help on using the changeset viewer.