Search
lxdream.org :: lxdream :: r690:1e8fd13a67ef
lxdream 0.9.1
released Jun 29
Download Now
changeset690:1e8fd13a67ef
parent689:9868667e3525
child691:ad3356543392
authornkeynes
dateMon Jun 16 11:00:40 2008 +0000 (11 years ago)
Move glGetError into the #ifdef - outside there may not actually be a context
src/pvr2/scene.c
1.1 --- a/src/pvr2/scene.c Mon Jun 16 10:58:41 2008 +0000
1.2 +++ b/src/pvr2/scene.c Mon Jun 16 11:00:40 2008 +0000
1.3 @@ -123,11 +123,11 @@
1.4
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_BUFFER
1.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 );
.