Search
lxdream.org :: lxdream/src/pvr2/scene.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/scene.c
changeset 690:1e8fd13a67ef
prev687:6bdc2b7032ea
next736:a02d1475ccfd
author nkeynes
date Mon Jun 16 11:00:40 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Move glGetError into the #ifdef - outside there may not actually be a context
file annotate diff log raw
1.1 --- a/src/pvr2/scene.c Sat Jun 14 11:54:15 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 );
.