JMQTODO: really need a platform-shared version of this nastiness
| 224 | |
| 225 | // JMQTODO: really need a platform-shared version of this nastiness |
| 226 | bool GL_EXT_Init( ) |
| 227 | { |
| 228 | // Load extensions... |
| 229 | // |
| 230 | const char* pExtString = reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)); |
| 231 | gGLState.primMode = 0; |
| 232 | U32 extBitMask = 0; |
| 233 | |
| 234 | // GL_EXT_paletted_texture |
| 235 | if (pExtString && dStrstr(pExtString, (const char*)"GL_EXT_paletted_texture") != NULL) |
| 236 | { |
| 237 | extBitMask |= EXT_paletted_texture; |
| 238 | gGLState.suppPalettedTexture = true; |
| 239 | } |
| 240 | else |
| 241 | gGLState.suppPalettedTexture = false; |
| 242 | |
| 243 | // EXT_compiled_vertex_array |
| 244 | if (pExtString && dStrstr(pExtString, (const char*)"GL_EXT_compiled_vertex_array") != NULL) |
| 245 | { |
| 246 | extBitMask |= EXT_compiled_vertex_array; |
| 247 | gGLState.suppLockedArrays = true; |
| 248 | } |
| 249 | else |
| 250 | { |
| 251 | gGLState.suppLockedArrays = false; |
| 252 | } |
| 253 | |
| 254 | // ARB_multitexture |
| 255 | if (pExtString && dStrstr(pExtString, (const char*)"GL_ARB_multitexture") != NULL) |
| 256 | { |
| 257 | extBitMask |= ARB_multitexture; |
| 258 | gGLState.suppARBMultitexture = true; |
| 259 | } else { |
| 260 | gGLState.suppARBMultitexture = false; |
| 261 | } |
| 262 | |
| 263 | // EXT_blend_color |
| 264 | if(pExtString && dStrstr(pExtString, (const char*)"GL_EXT_blend_color") != NULL) |
| 265 | { |
| 266 | extBitMask |= EXT_blend_color; |
| 267 | gGLState.suppEXTblendcolor = true; |
| 268 | } else { |
| 269 | gGLState.suppEXTblendcolor = false; |
| 270 | } |
| 271 | |
| 272 | // EXT_blend_minmax |
| 273 | if(pExtString && dStrstr(pExtString, (const char*)"GL_EXT_blend_minmax") != NULL) |
| 274 | { |
| 275 | extBitMask |= EXT_blend_color; |
| 276 | gGLState.suppEXTblendminmax = true; |
| 277 | } else { |
| 278 | gGLState.suppEXTblendminmax = false; |
| 279 | } |
| 280 | |
| 281 | // EXT_fog_coord |
| 282 | if (pExtString && dStrstr(pExtString, (const char*)"GL_EXT_fog_coord") != NULL) |
| 283 | { |
nothing calls this directly
no test coverage detected