mirror of https://github.com/xemu-project/xemu.git
Check GL Version in NV2A
This commit is contained in:
parent
b392aeed7a
commit
c32594ed12
|
@ -125,17 +125,6 @@ GloContext *glo_context_create(int formatFlags)
|
|||
|
||||
/* Get rid of GLEW errors */
|
||||
while(glGetError() != GL_NO_ERROR);
|
||||
|
||||
GLint major, minor;
|
||||
glGetIntegerv(GL_MAJOR_VERSION, &major);
|
||||
glGetIntegerv(GL_MINOR_VERSION, &minor);
|
||||
printf("GL %d.%d\n",major,minor);
|
||||
#if 0
|
||||
if (GLEW_VERSION_3_3) {
|
||||
printf("OpenGL 3.3 Core not supported!\n");
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
initialized = true;
|
||||
|
|
|
@ -3044,6 +3044,10 @@ static void pgraph_init(PGRAPHState *pg)
|
|||
glextensions_init();
|
||||
|
||||
/* Check context capabilities */
|
||||
GLint major, minor;
|
||||
glGetIntegerv(GL_MAJOR_VERSION, &major);
|
||||
glGetIntegerv(GL_MINOR_VERSION, &minor);
|
||||
assert(major == 3 && minor == 3);
|
||||
assert(glo_check_extension("GL_EXT_texture_compression_s3tc"));
|
||||
|
||||
GLint max_vertex_attributes;
|
||||
|
|
Loading…
Reference in New Issue