Possible bug in PyOpenGL wrapper of glGenTextures?

Karl Koscher <[email protected]> Mon, 8 Sep 2014 00:48:39 -0700
Newsgroups gmane.comp.python.opengl.devel
Message-ID <CAM-SrY-_mKCFtzpeAe35v9rh_HD8Gq7bhC=3P-qs6qSy3rpGyg@mail.gmail.com>
--===============4462430153187246501==
Content-Type: multipart/alternative; boundary=001a113467f4385b630502890d8d

--001a113467f4385b630502890d8d
Content-Type: text/plain; charset=UTF-8

I'm running GNU Radio on Windows and was trying to figure out why the WX
FFT display wasn't working. It looks like glGenTextures(1) is the culprit.
An argument of 1 is special-cased for backwards-compatibility, but this
seems to break. Commenting this special case out fixes the FFT display.

I think the problem is that a single ulong is passed in to the underlying
function, but it always expects an array of ulongs. I think an array should
still be passed in, with the first element of the array returned in the
special case (instead of the array itself).

Of course, this is all voodoo magic to me, so perhaps there's a good reason
for the code the way it is. It would be nice for it to work on Windows
without hacking the code, though.

--001a113467f4385b630502890d8d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;m running GNU Radio on Windows and was trying to fig=
ure out why the WX FFT display wasn&#39;t working. It looks like glGenTextu=
res(1) is the culprit. An argument of 1 is special-cased for backwards-comp=
atibility, but this seems to break. Commenting this special case out fixes =
the FFT display.<div><br></div><div>I think the problem is that a single ul=
ong is passed in to the underlying function, but it always expects an array=
 of ulongs. I think an array should still be passed in, with the first elem=
ent of the array returned in the special case (instead of the array itself)=
.=C2=A0</div><div><br></div><div>Of course, this is all voodoo magic to me,=
 so perhaps there&#39;s a good reason for the code the way it is. It would =
be nice for it to work on Windows without hacking the code, though.<br><div=
><br></div><div><br></div></div></div>

--001a113467f4385b630502890d8d--


--===============4462430153187246501==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
--===============4462430153187246501==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-devel

--===============4462430153187246501==--