summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_sky.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl2/tr_sky.c')
-rw-r--r--src/renderergl2/tr_sky.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderergl2/tr_sky.c b/src/renderergl2/tr_sky.c
index 5a90f460..2a180da5 100644
--- a/src/renderergl2/tr_sky.c
+++ b/src/renderergl2/tr_sky.c
@@ -422,7 +422,7 @@ static void DrawSkySide( struct image_s *image, const int mins[2], const int max
tess.maxIndex = tess.numVertexes;
// FIXME: A lot of this can probably be removed for speed, and refactored into a more convenient function
- RB_UpdateTessVbo(ATTR_POSITION | ATTR_TEXCOORD);
+ RB_UpdateTessVao(ATTR_POSITION | ATTR_TEXCOORD);
/*
{
shaderProgram_t *sp = &tr.textureColorShader;
@@ -467,7 +467,7 @@ static void DrawSkySide( struct image_s *image, const int mins[2], const int max
GLSL_SetUniformVec4(sp, UNIFORM_DIFFUSETEXOFFTURB, vector);
}
- R_DrawElementsVBO(tess.numIndexes - tess.firstIndex, tess.firstIndex, tess.minIndex, tess.maxIndex);
+ R_DrawElementsVao(tess.numIndexes - tess.firstIndex, tess.firstIndex, tess.minIndex, tess.maxIndex);
//qglDrawElements(GL_TRIANGLES, tess.numIndexes - tess.firstIndex, GL_INDEX_TYPE, BUFFER_OFFSET(tess.firstIndex * sizeof(glIndex_t)));