VBO glBufferDataARB fix

Andreas Bombe <[email protected]>
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Good news, everyone!  VBO *does* work.

It's only that glBuffer(Sub)DataARB weren't copying the complete data.
Attached patch fixes that.

-- 
Andreas Bombe <[email protected]>    GPG key 0x04880A44

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-devel
vbo.diff (text/x-diff, 666 B)
Index: OpenGL/GL/ARB/vertex_buffer_object.py
===================================================================
RCS file: /cvsroot/pyopengl/OpenGL-ctypes/OpenGL/GL/ARB/vertex_buffer_object.py,v
retrieving revision 1.9
diff -u -w -r1.9 vertex_buffer_object.py
--- OpenGL/GL/ARB/vertex_buffer_object.py	14 Nov 2006 05:07:16 -0000	1.9
+++ OpenGL/GL/ARB/vertex_buffer_object.py	29 Mar 2007 15:47:09 -0000
@@ -24,7 +24,7 @@
 
 def _sizeOfArrayInput( pyArgs, index, wrapper ):
 	return (
-		arrays.ArrayDatatype.arraySize( pyArgs[index] )
+		arrays.ArrayDatatype.arrayByteCount( pyArgs[index] )
 	)
 
 glBufferDataARB = wrapper.wrapper( glBufferDataARB ).setPyConverter(
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.