From: James S. <arr...@gm...> - 2006-08-04 07:08:45
|
I think you may have left the deffintion of crStateUseServerArrayElements out. I did a cvs checkout to be sure, I tried to build, it failed. so I did grep -ri crStateUseServerArrayElements ./* and it returns one line ./spu/tilesort/tilesortspu_client.c: crStateUseServerArrayElements()) { ig, you are calling a function without a deffintion. I think... the tail of the build error is Compiling tilesortspu_client.c tilesortspu_client.c: In function `tilesortspu_DrawElements': tilesortspu_client.c:134: warning: implicit declaration of function `crStateUseServerArrayElements' gmake[3]: *** [../../built/tilesortspu/Linux/tilesortspu_client.o] Error 1 gmake[2]: *** [dep] Error 2 gmake[1]: *** [tilesort.subdir] Error 2 make: *** [spu.subdir] Error 2 Thank you for your time, James Steven Supancic III On 8/3/06, Brian Paul <bri...@tu...> wrote: > > > Ok, I think I've fixed the vertex array / VBO problem. > > We were crashing in glDrawElements() when the vertex data was in a > server-side VBO but the array element indices were local. > > Sauerbraten is a little sub-optimal in that regard. If you're going > to put your vertex data into a VBO and you're going to use > glDrawElements(), the element indices should go in a > GL_ELEMENT_ARRAY_BUFFER buffer to get best performance. > > -Brian > > |