Patched to compile on Visual Studio.
authorRyan C. Gordon
Fri, 28 Sep 2012 14:17:30 -0400
changeset 6499a34024340f54
parent 6498 93d9b2a2eb0e
child 6507 42acda949dfb
Patched to compile on Visual Studio.
src/render/opengl/SDL_render_gl.c
     1.1 --- a/src/render/opengl/SDL_render_gl.c	Fri Sep 28 14:12:45 2012 -0400
     1.2 +++ b/src/render/opengl/SDL_render_gl.c	Fri Sep 28 14:17:30 2012 -0400
     1.3 @@ -150,7 +150,7 @@
     1.4      GL_FBOList *fbo;
     1.5  } GL_TextureData;
     1.6  
     1.7 -static inline const char*
     1.8 +static __inline__ const char*
     1.9  GL_TranslateError (GLenum error)
    1.10  {
    1.11  #define GL_ERROR_TRANSLATE(e) case e: return #e;
    1.12 @@ -190,10 +190,12 @@
    1.13      return ret;
    1.14  }
    1.15  
    1.16 -#if 1
    1.17 +#if 0
    1.18 +#define GL_CheckError(prefix, renderer)
    1.19 +#elif defined(_MSC_VER)
    1.20 +#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __FUNCTION__)
    1.21 +#else
    1.22  #define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __PRETTY_FUNCTION__)
    1.23 -#else
    1.24 -#define GL_CheckError(prefix, renderer)
    1.25  #endif
    1.26  
    1.27  static int