From eefb27dfd4bf6c2b5d951735d4f9ea9e989cc0d1 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 14 Oct 2009 09:44:46 +0000 Subject: [PATCH] do not use VBOs when gl_mesh_testarrayelement is 1 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9337 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_backend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gl_backend.c b/gl_backend.c index 35a0e01f..9ef466a9 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -1590,7 +1590,7 @@ void R_Mesh_Matrix(const matrix4x4_t *matrix) void R_Mesh_VertexPointer(const float *vertex3f, int bufferobject, size_t bufferoffset) { - if (!gl_vbo.integer) + if (!gl_vbo.integer || gl_mesh_testarrayelement.integer) bufferobject = 0; if (gl_state.pointer_vertex != vertex3f || gl_state.pointer_vertex_buffer != bufferobject || gl_state.pointer_vertex_offset != bufferoffset) { @@ -1610,7 +1610,7 @@ void R_Mesh_ColorPointer(const float *color4f, int bufferobject, size_t bufferof // means that a valid vbo may be supplied even if there is no color array. if (color4f) { - if (!gl_vbo.integer) + if (!gl_vbo.integer || gl_mesh_testarrayelement.integer) bufferobject = 0; // caller wants color array enabled if (!gl_state.pointer_color_enabled) @@ -1652,7 +1652,7 @@ void R_Mesh_TexCoordPointer(unsigned int unitnum, unsigned int numcomponents, co // that involve a valid bufferobject also supply a texcoord array if (texcoord) { - if (!gl_vbo.integer) + if (!gl_vbo.integer || gl_mesh_testarrayelement.integer) bufferobject = 0; // texture array unit is enabled, enable the array if (!unit->arrayenabled) -- 2.39.2