Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Patched to compile on Visual Studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 28, 2012
1 parent cd820c1 commit 3c49a07
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/render/opengl/SDL_render_gl.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3c49a07

Please sign in to comment.