[Gridflow-cvs] [svn] commit: r5487 - /trunk/src/gem.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Apr 19 19:35:17 EDT 2010


Author: matju
Date: Mon Apr 19 19:35:17 2010
New Revision: 5487

Log:
put hex in post when printing gl consts

Modified:
    trunk/src/gem.cxx

Modified: trunk/src/gem.cxx
==============================================================================
--- trunk/src/gem.cxx (original)
+++ trunk/src/gem.cxx Mon Apr 19 19:35:17 2010
@@ -241,13 +241,13 @@
 		  #ifdef GL_VERSION_1_2
 		  case GL_BGRA: bp = bp_bgra; break;
 		  #endif
-		  default: ::post("can't produce grid from pix format %d",im.format); return;}
+		  default: ::post("can't produce grid from pix format %d (0x%x)",im.format,im.format); return;}
 		switch (im.type) {
 		  case GL_UNSIGNED_BYTE: break; /*ok*/
 		  #ifdef GL_VERSION_1_2
 		  case GL_UNSIGNED_INT_8_8_8_8: break; /*ok*/
 		  #endif
-		  default: ::post("can't produce grid from pix type %d",  im.type  ); return;}
+		  default: ::post("can't produce grid from pix type %d (0x%x)",  im.type, im.type  ); return;}
 		// on OSX, one was GL_UNSIGNED_INT_8_8_8_8 and the other was...?
 		int32 v[] = { im.ysize, im.xsize, channels };
 		GridOutlet out(this,0,new Dim(3,v),cast);



More information about the Gridflow-cvs mailing list