# HG changeset patch # User nkeynes # Date 1213614040 0 # Node ID 1e8fd13a67ef0c659c8a6e3390d93db7fa4694ed # Parent 9868667e35257b6fac785cec653f661ed5931a13 Move glGetError into the #ifdef - outside there may not actually be a context --- a/src/pvr2/scene.c Mon Jun 16 10:58:41 2008 +0000 +++ b/src/pvr2/scene.c Mon Jun 16 11:00:40 2008 +0000 @@ -123,11 +123,11 @@ void *vertex_buffer_map() { - glGetError(); // Allow 8 vertexes for the background (4+4) uint32_t size = (pvr2_scene.vertex_count + 8) * sizeof(struct vertex_struct); #ifdef ENABLE_VERTEX_BUFFER if( vbo_supported ) { + glGetError(); glBindBufferARB( GL_ARRAY_BUFFER_ARB, pvr2_scene.vbo_id ); if( size > pvr2_scene.vertex_array_size ) { glBufferDataARB( GL_ARRAY_BUFFER_ARB, size, NULL, GL_DYNAMIC_DRAW_ARB );