Re: [PyOpenGL-Users] Works on OSX, fails on Linux
Brought to you by:
mcfletch
|
From: Mike C. F. <mcf...@vr...> - 2011-05-23 19:04:20
|
On 11-05-23 02:41 PM, Derakon wrote: > I'm trying to port a program from OSX to Linux, so it can be run over > an SSH tunnel. I'm getting "invalid operation" errors when I call > glTexSubImage2D, though. I've trimmed the program down to a > more-or-less minimal program (still almost 200 lines) which still > exhibits the failure: I'm pretty sure the problem is that you haven't properly bound your texture for the refresh and as a result you are seeing an error due to e.g. alignment or similar issues pushing your image parameters into invalid territory. I come to that conclusion by adding a self.bindtexture() to your image class' refresh method, which eliminates the errors and displays some gradients. This kind of thing is common in cross-platform OpenGL, one implementation happens to allow it, another is more strict about the order of operations. Linux, in particular, has become far more stringent in recent years as to order of operations. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |