Re: [PyOpenGL-Users] Shader linking problems...
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-03-18 14:03:41
|
Nick Klepinger wrote: > Hi all, > > I've been having some problems getting some basic shaders to link when > loading from a file. If I hard code the shaders as a python string, I > have no problems. Here's how I'm loading the shaders. Only thing that jumps out at me is that you're compiling a single string, while glShaderSource normally takes a list-of-strings. I know I've seen that fail before. Other big difference might be that you've got a unicode value popping up from somewhere, with a null-byte value terminating the string as far as OpenGL is concerned. Good luck, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |