- Timestamp:
- Jun 24, 2009 7:40:43 AM (16 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL/pack
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu.h
r20411 r20879 40 40 CRContext *clientState; /* used to store client-side GL state */ 41 41 GLint serverCtx; /* context ID returned by server */ 42 charglVersion[100]; /* GL_VERSION string */43 charpszRealVendor[100];44 charpszRealVersion[100];45 charpszRealRenderer[100];42 GLubyte glVersion[100]; /* GL_VERSION string */ 43 GLubyte pszRealVendor[100]; 44 GLubyte pszRealVersion[100]; 45 GLubyte pszRealRenderer[100]; 46 46 }; 47 47 -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_getstring.c
r20617 r20879 16 16 #endif 17 17 18 static void GetString(GLenum name, char*pszStr)18 static void GetString(GLenum name, GLubyte *pszStr) 19 19 { 20 20 GET_THREAD(thread); … … 83 83 if (fversion>=2.f) 84 84 { 85 sprintf( gpszExtensions, "%sGL_ARB_shading_language_100 GL_ARB_shader_objects GL_ARB_vertex_shader GL_ARB_fragment_shader", ext);85 sprintf((char*)gpszExtensions, "%sGL_ARB_shading_language_100 GL_ARB_shader_objects GL_ARB_vertex_shader GL_ARB_fragment_shader", ext); 86 86 } 87 87 } … … 113 113 { 114 114 GetString(GL_REAL_VERSION, ctx->pszRealVersion); 115 return (const GLubyte*)ctx->pszRealVersion;115 return ctx->pszRealVersion; 116 116 } 117 117 else … … 119 119 { 120 120 float version = GetVersionString(); 121 sprintf( ctx->glVersion, "%.1f Chromium %s", version, CR_VERSION_STRING);122 return (const GLubyte *)ctx->glVersion;121 sprintf((char*)ctx->glVersion, "%.1f Chromium %s", version, CR_VERSION_STRING); 122 return ctx->glVersion; 123 123 } 124 124 case GL_VENDOR: … … 127 127 { 128 128 GetString(GL_REAL_VENDOR, ctx->pszRealVendor); 129 return (const GLubyte*)ctx->pszRealVendor;129 return ctx->pszRealVendor; 130 130 } 131 131 else … … 139 139 { 140 140 GetString(GL_REAL_RENDERER, ctx->pszRealRenderer); 141 return (const GLubyte*)ctx->pszRealRenderer;141 return ctx->pszRealRenderer; 142 142 } 143 143 else … … 155 155 case GL_REAL_VENDOR: 156 156 GetString(GL_REAL_VENDOR, ctx->pszRealVendor); 157 return (const GLubyte*)ctx->pszRealVendor;157 return ctx->pszRealVendor; 158 158 case GL_REAL_VERSION: 159 159 GetString(GL_REAL_VERSION, ctx->pszRealVersion); 160 return (const GLubyte*)ctx->pszRealVersion;160 return ctx->pszRealVersion; 161 161 case GL_REAL_RENDERER: 162 162 GetString(GL_REAL_RENDERER, ctx->pszRealRenderer); 163 return (const GLubyte*)ctx->pszRealRenderer;163 return ctx->pszRealRenderer; 164 164 #endif 165 165 default:
Note:
See TracChangeset
for help on using the changeset viewer.