Patched to compile on Visual Studio.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 28 Sep 2012 14:17:30 -0400
changeset 6499 a34024340f54
parent 6498 93d9b2a2eb0e
child 6507 42acda949dfb
Patched to compile on Visual Studio.
src/render/opengl/SDL_render_gl.c
--- a/src/render/opengl/SDL_render_gl.c	Fri Sep 28 14:12:45 2012 -0400
+++ b/src/render/opengl/SDL_render_gl.c	Fri Sep 28 14:17:30 2012 -0400
@@ -150,7 +150,7 @@
     GL_FBOList *fbo;
 } GL_TextureData;
 
-static inline const char*
+static __inline__ const char*
 GL_TranslateError (GLenum error)
 {
 #define GL_ERROR_TRANSLATE(e) case e: return #e;
@@ -190,10 +190,12 @@
     return ret;
 }
 
-#if 1
+#if 0
+#define GL_CheckError(prefix, renderer)
+#elif defined(_MSC_VER)
+#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __FUNCTION__)
+#else
 #define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __PRETTY_FUNCTION__)
-#else
-#define GL_CheckError(prefix, renderer)
 #endif
 
 static int