Patched to compile on Visual Studio.
This commit is contained in:
parent
f75687d3e7
commit
3861a6c17c
1 changed files with 6 additions and 4 deletions
|
@ -150,7 +150,7 @@ typedef struct
|
||||||
GL_FBOList *fbo;
|
GL_FBOList *fbo;
|
||||||
} GL_TextureData;
|
} GL_TextureData;
|
||||||
|
|
||||||
static inline const char*
|
static __inline__ const char*
|
||||||
GL_TranslateError (GLenum error)
|
GL_TranslateError (GLenum error)
|
||||||
{
|
{
|
||||||
#define GL_ERROR_TRANSLATE(e) case e: return #e;
|
#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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 1
|
#if 0
|
||||||
#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __PRETTY_FUNCTION__)
|
|
||||||
#else
|
|
||||||
#define GL_CheckError(prefix, renderer)
|
#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
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue