OpenGL2: Use loader for all extension funcs.
This commit is contained in:
1 parent
2ef99c8528
commit
716438168f
9 files changed
+158
-288
No files matched your search
@@ -262,8 +262,8 @@ vao_t *R_CreateVao(const char *name, byte *vertexes, int vertexesSize, byte *ind
|
||||
|
||||
if (glRefConfig.vertexArrayObject)
|
||||
{
|
||||
qglGenVertexArraysARB(1, &vao->vao);
|
||||
qglBindVertexArrayARB(vao->vao);
|
||||
qglGenVertexArrays(1, &vao->vao);
|
||||
qglBindVertexArray(vao->vao);
|
||||
}
|
||||
|
||||
|
||||
@@ -383,8 +383,8 @@ vao_t *R_CreateVao2(const char *name, int numVertexes, srfVert_t *verts, int num
|
||||
|
||||
if (glRefConfig.vertexArrayObject)
|
||||
{
|
||||
qglGenVertexArraysARB(1, &vao->vao);
|
||||
qglBindVertexArrayARB(vao->vao);
|
||||
qglGenVertexArrays(1, &vao->vao);
|
||||
qglBindVertexArray(vao->vao);
|
||||
}
|
||||
|
||||
|
||||
@@ -480,7 +480,7 @@ void R_BindVao(vao_t * vao)
|
||||
|
||||
if (glRefConfig.vertexArrayObject)
|
||||
{
|
||||
qglBindVertexArrayARB(vao->vao);
|
||||
qglBindVertexArray(vao->vao);
|
||||
|
||||
// why you no save GL_ELEMENT_ARRAY_BUFFER binding, Intel?
|
||||
if (1)
|
||||
@@ -515,7 +515,7 @@ void R_BindNullVao(void)
|
||||
{
|
||||
if (glRefConfig.vertexArrayObject)
|
||||
{
|
||||
qglBindVertexArrayARB(0);
|
||||
qglBindVertexArray(0);
|
||||
|
||||
// why you no save GL_ELEMENT_ARRAY_BUFFER binding, Intel?
|
||||
if (1) qglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||
@@ -654,7 +654,7 @@ void R_ShutdownVaos(void)
|
||||
vao = tr.vaos[i];
|
||||
|
||||
if(vao->vao)
|
||||
qglDeleteVertexArraysARB(1, &vao->vao);
|
||||
qglDeleteVertexArrays(1, &vao->vao);
|
||||
|
||||
if(vao->vertexesVBO)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user