Re: [PyOpenGL-Devel] Possible bug in PyOpenGL wrapper of glGenTextures?
Brought to you by:
mcfletch
|
From: Karl K. <sup...@cs...> - 2014-09-08 22:32:03
|
--- OpenGL/GL/exceptional.py Mon Sep 8 15:26:21 2014
+++ OpenGL/GL/exceptional-new.py Mon Sep 8 15:24:24 2014
@@ -182,12 +182,12 @@
"""
if count <= 0:
raise ValueError( """Can't generate 0 or fewer textures""" )
- elif count == 1 and _configflags.SIZE_1_ARRAY_UNPACK:
- # this traditionally returned a single int/long, so we'll continue to
- # do so, even though it would be easier not to bother.
- textures = constants.GLuint( 0 )
- baseFunction( count, textures)
- return textures.value
+ #elif count == 1 and _configflags.SIZE_1_ARRAY_UNPACK:
+ # # this traditionally returned a single int/long, so we'll continue to
+ # # do so, even though it would be easier not to bother.
+ # textures = constants.GLuint( 0 )
+ # baseFunction( count, textures)
+ # return textures.value
else:
textures = arrays.GLuintArray.zeros( (count,))
baseFunction( count, textures) |