Patched to compile on Visual Studio.

This commit is contained in:
Ryan C. Gordon 2012-09-28 14:17:30 -04:00
parent f75687d3e7
commit 3861a6c17c

View file

@ -150,7 +150,7 @@ typedef struct
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 @@ GL_CheckAllErrors (const char *prefix, SDL_Renderer * renderer, const char *file
return ret;
}
#if 1
#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __PRETTY_FUNCTION__)
#else
#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__)
#endif
static int