]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/TestRenderTexture.cpp
fix a typo
[simgear.git] / simgear / screen / TestRenderTexture.cpp
index 1b7e748cbee9327eb82f220be847d5b21af29b87..615c22917bcc19441a9343a203506b4141cc46a6 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 
+// DEBUG - add a lot of noise
+//#ifndef _DEBUG
+//#define _DEBUG
+//#endif
+
+#if defined (_DEBUG) 
+const char * get_attr_name( int val, int * pdef );
+#define dbg_printf printf
+#else
+#if defined (__GNUC__)
+#define dbg_printf(format,args...) ((void)0)
+#else // defined (__GNUC__)
 #define dbg_printf
-//#define dbg_printf printf
+#endif // defined (__GNUC__)
+#endif // defined (_DEBUG)
+
 
 void Reshape(int w, int h);
 
@@ -64,7 +78,7 @@ static int g_currentString      = 0;
 // Function            : PrintGLerror
 // Description     : 
 //---------------------------------------------------------------------------
-void PrintGLerror( char *msg )
+void PrintGLerror( const char *msg )
 {
     GLenum errCode;
     const GLubyte *errStr;