diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-21 08:35:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-21 08:35:29 +0300 |
commit | cb031ec0927b9c1abb9b510f954ac21287f59cb7 (patch) | |
tree | 5b6b862b6b7fb4cd84c1d6bdf50bc5203ec2d47e /source/blender/python/generic/bgl.h | |
parent | 72279e1c9247c8779f75f495ed7fa99908209411 (diff) |
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.
Diffstat (limited to 'source/blender/python/generic/bgl.h')
-rw-r--r-- | source/blender/python/generic/bgl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/generic/bgl.h b/source/blender/python/generic/bgl.h index 5e40cda3114..60cca8e8ec7 100644 --- a/source/blender/python/generic/bgl.h +++ b/source/blender/python/generic/bgl.h @@ -215,19 +215,19 @@ extern PyTypeObject BGL_bufferType; #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) |