revision 690:1e8fd13a67ef
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 690:1e8fd13a67ef |
parent | 689:9868667e3525 |
child | 691:ad3356543392 |
author | nkeynes |
date | Mon Jun 16 11:00:40 2008 +0000 (15 years ago) |
Move glGetError into the #ifdef - outside there may not actually be a context
src/pvr2/scene.c | view | annotate | diff | log |
1.1 --- a/src/pvr2/scene.c Mon Jun 16 10:58:41 2008 +00001.2 +++ b/src/pvr2/scene.c Mon Jun 16 11:00:40 2008 +00001.3 @@ -123,11 +123,11 @@1.5 void *vertex_buffer_map()1.6 {1.7 - glGetError();1.8 // Allow 8 vertexes for the background (4+4)1.9 uint32_t size = (pvr2_scene.vertex_count + 8) * sizeof(struct vertex_struct);1.10 #ifdef ENABLE_VERTEX_BUFFER1.11 if( vbo_supported ) {1.12 + glGetError();1.13 glBindBufferARB( GL_ARRAY_BUFFER_ARB, pvr2_scene.vbo_id );1.14 if( size > pvr2_scene.vertex_array_size ) {1.15 glBufferDataARB( GL_ARRAY_BUFFER_ARB, size, NULL, GL_DYNAMIC_DRAW_ARB );
.