[Gridflow-cvs] [svn] commit: r6006 - /trunk/src/opengl.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Aug 10 08:07:03 EDT 2010


Author: claude
Date: Tue Aug 10 08:07:01 2010
New Revision: 6006

Log:
guard against uninitialized function pointer

Modified:
    trunk/src/opengl.cxx

Modified: trunk/src/opengl.cxx
==============================================================================
--- trunk/src/opengl.cxx (original)
+++ trunk/src/opengl.cxx Tue Aug 10 08:07:01 2010
@@ -1344,7 +1344,9 @@
 
 	// ActiveTextureARB
 	// BindProgramARB
-	\decl 0 blend_equation (t_atom mode) {glBlendEquation(blend_equation(mode));}
+	\decl 0 blend_equation (t_atom mode) {
+		if (!glBlendEquation) RAISE("need OpenGL ARB_imaging extension");
+		glBlendEquation(blend_equation(mode));}
 	// GenProgramsARB
 	// MultiTexCoord2fARB
 	// ProgramEnvParameter4dARB



More information about the Gridflow-cvs mailing list