Changeset 37664 in vbox
- Timestamp:
- Jun 28, 2011 12:12:25 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_getstring.c
r35271 r37664 10 10 #include "cr_string.h" 11 11 #include "packspu_proto.h" 12 #include "cr_mem.h" 13 #include <locale.h> 12 14 13 15 static GLubyte gpszExtensions[10000]; … … 116 118 #endif 117 119 { 118 float version = GetVersionString(); 120 char *oldlocale; 121 float version; 122 123 oldlocale = setlocale(LC_NUMERIC, NULL); 124 oldlocale = crStrdup(oldlocale); 125 setlocale(LC_NUMERIC, "C"); 126 127 version = GetVersionString(); 119 128 sprintf((char*)ctx->glVersion, "%.1f Chromium %s", version, CR_VERSION_STRING); 129 130 if (oldlocale) 131 { 132 setlocale(LC_NUMERIC, oldlocale); 133 crFree(oldlocale); 134 } 135 120 136 return ctx->glVersion; 121 137 }
Note:
See TracChangeset
for help on using the changeset viewer.