[PyOpenGL-Users] python3 bytes vs str in getExtensionProcedure
Brought to you by:
mcfletch
From: Rob M. - N. A. <rob...@no...> - 2018-06-26 22:27:04
|
In python 3 (and pyopengl 3.1.1a1), this works: gl.platform.PLATFORM.getExtensionProcedure(b"glGenBuffers") but this fails, returning None: gl.platform.PLATFORM.getExtensionProcedure("glGenBuffers") on any platform. The difference being the bytes vs str in the argument. This is a corner case to be sure because I'm trying to support some very old legacy OpenGL implementations (OpenGL 2.1 because wxPython on Windows), but maybe this will save someone else, oh, I don't know, like 8 or 10 hours debugging... :) Rob |