[Gridflow-dev] OpenGL wrangling
Mathieu Bouchard
matju at artengine.ca
Mon Aug 9 20:09:40 EDT 2010
On Mon, 9 Aug 2010, Claude Heiland-Allen wrote:
> Despite having a recent GPU with up-to-date drivers, I can't compile GridFlow
> SVN trunk with opengl as my gl.h is only for 1.1 [1], and moreover one
> function used is in an optional part of the specification.
> glBlendEquation requires GL_ARB_imaging extension
> glTexImage3D, glTexSubImage3D, glCopyTexSubImage3D require GL >= 1.2
> glLoadTransposeMatrix, glMultTransposeMatrixf require GL >= 1.3
> My standard workaround is to use GLEW[2] which usually makes things just
> work (unless a function really isn't supported, in which case the
> function pointer is 0 - shifting existence checks from compile-time to
> run-time has some problems too of course...). I don't know how this
> would interact with Gem's usage (or not) of GLEW, though.
I added checks for null pointers for the methods you mentioned, except the
ARB. Does it look ok ? Should I do it with all the ARB as well ?
Do you have anything else that still doesn't compile ? (macro constants
not found and stuff)
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
More information about the Gridflow-dev
mailing list