Re: Shader doesn't compile with Python 3
"Mike C. Fletcher" <[email protected]> Mon, 15 Apr 2013 22:43:05 -0400
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
On 13-04-14 04:43 PM, Matt Williams wrote: > On 14 April 2013 16:05, Ian Mallett <[email protected]> wrote: >> Pass it binary strings. > If I do that with: > > VERTEX_SHADER = shaders.compileShader(b""" > #version 130 > > void main() > { > } > """, GL_VERTEX_SHADER) > > then it still works correctly on Python 2.7 but with Python 3.3 it errors with: The above code (with or without the b) works with Python 2.7, 3.2 and 3.3 on Ubuntu 64-bit with fglrx drivers when using bzr head. bzr head *also* for the first time, can run test_core.py on all of those platforms (when numpy and pygame are installed), however, I don't see anything in the changes I made which should have caused the error you saw. If you can test on bzr head, that would let me know whether we're looking at something already fixed, or a continuing bug. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net