mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-26 05:52:03 +00:00
OpenGL2: Force VAO usage on OpenGL 3.0+
This commit is contained in:
parent
3f415abe61
commit
9d1c6748f5
1 changed files with 10 additions and 2 deletions
|
@ -112,9 +112,17 @@ void GLimp_InitExtraExtensions()
|
|||
// OpenGL 3.0 - GL_ARB_vertex_array_object
|
||||
extension = "GL_ARB_vertex_array_object";
|
||||
glRefConfig.vertexArrayObject = qfalse;
|
||||
if (SDL_GL_ExtensionSupported(extension))
|
||||
if (q_gl_version_at_least_3_0 || SDL_GL_ExtensionSupported(extension))
|
||||
{
|
||||
glRefConfig.vertexArrayObject = !!r_arb_vertex_array_object->integer;
|
||||
if (q_gl_version_at_least_3_0)
|
||||
{
|
||||
// force VAO, core context requires it
|
||||
glRefConfig.vertexArrayObject = qtrue;
|
||||
}
|
||||
else
|
||||
{
|
||||
glRefConfig.vertexArrayObject = !!r_arb_vertex_array_object->integer;
|
||||
}
|
||||
|
||||
QGL_ARB_vertex_array_object_PROCS;
|
||||
|
||||
|
|
Loading…
Reference in a new issue