Re: [PyOpenGL-Users] bug in glDrawBuffers?
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-02-18 14:28:05
|
Gijs wrote: ... > Hello Mike, > > Thanks for your reply. I needed to cast some arguments (img, fbo) to > int and after that the code ran just fine, but the error remains > (pasted below). Also, I made a Python-C module to see whether the same > error would occur there. But with the exact same code in C, I could > call glDrawBuffers to draw to multiple buffers without any problems. > So even though the Python code should not really do much with the > call, it does something to mess it up. Hmm, you *shouldn't* have to cast arguments, that code ran without errors on my machine. Can you confirm that you're running PyOpenGL 3.0.0c1? Also, do you have numpy installed? (Default array return value is numpy arrays). If you can print or pdb at the failing point and tell me precisely what types the values are, it may be that on your platform we're hitting a different code-path than on amd64-linux. Thanks, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |