Re: [PyOpenGL-Users] Shader doesn't compile with Python 3
Brought to you by:
mcfletch
From: Chris B. - N. F. <chr...@no...> - 2013-05-29 16:24:06
|
On Tue, May 28, 2013 at 10:53 PM, Gabriele Lanaro <gab...@gm...> wrote: > I'm having the same problem in python 3 (not being able to compile the > shaders because it gets an invalid literal). Did you find any actual > workaround for that? IIUC shaders have to be written in ASCII, perhaps with Py3, you are passing unicode in -- ty encoding it to ascii and passing the bytes object instead. Or maybe I totally mis-understand the issue! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |