[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33205] trunk/blender/source/blender/ python/generic/bgl.h: incorrect argument parsing for python opengl module bgl.
Campbell Barton
ideasman42 at gmail.com
Sun Nov 21 06:35:36 CET 2010
Revision: 33205
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33205
Author: campbellbarton
Date: 2010-11-21 06:35:29 +0100 (Sun, 21 Nov 2010)
Log Message:
-----------
incorrect argument parsing for python opengl module bgl.
unsigned byte/short/int were being passes as signed values which would raise an overflow error if a range greater then the signed value was used.
Modified Paths:
--------------
trunk/blender/source/blender/python/generic/bgl.h
Modified: trunk/blender/source/blender/python/generic/bgl.h
===================================================================
--- trunk/blender/source/blender/python/generic/bgl.h 2010-11-21 03:45:35 UTC (rev 33204)
+++ trunk/blender/source/blender/python/generic/bgl.h 2010-11-21 05:35:29 UTC (rev 33205)
@@ -215,19 +215,19 @@
#define GLsizei_def(num) int GLsizei_var(num)
/* typedef unsigned char GLubyte; */
-#define GLubyte_str "b"
+#define GLubyte_str "B"
#define GLubyte_var(num) bgl_var##num
#define GLubyte_ref(num) &bgl_var##num
#define GLubyte_def(num) /* unsigned */ char GLubyte_var(num)
/* typedef unsigned short GLushort; */
-#define GLushort_str "h"
+#define GLushort_str "H"
#define GLushort_var(num) bgl_var##num
#define GLushort_ref(num) &bgl_var##num
#define GLushort_def(num) /* unsigned */ short GLushort_var(num)
/* typedef unsigned int GLuint; */
-#define GLuint_str "i"
+#define GLuint_str "I"
#define GLuint_var(num) bgl_var##num
#define GLuint_ref(num) &bgl_var##num
#define GLuint_def(num) /* unsigned */ int GLuint_var(num)
More information about the Bf-blender-cvs
mailing list