src/render/opengl/SDL_render_gl.c
changeset 6499 a34024340f54
parent 6494 309599be5c2a
child 6528 e978048ced60
equal deleted inserted replaced
6498:93d9b2a2eb0e 6499:a34024340f54
   148     GLuint vtexture;
   148     GLuint vtexture;
   149     
   149     
   150     GL_FBOList *fbo;
   150     GL_FBOList *fbo;
   151 } GL_TextureData;
   151 } GL_TextureData;
   152 
   152 
   153 static inline const char*
   153 static __inline__ const char*
   154 GL_TranslateError (GLenum error)
   154 GL_TranslateError (GLenum error)
   155 {
   155 {
   156 #define GL_ERROR_TRANSLATE(e) case e: return #e;
   156 #define GL_ERROR_TRANSLATE(e) case e: return #e;
   157     switch (error) {
   157     switch (error) {
   158     GL_ERROR_TRANSLATE(GL_INVALID_ENUM)
   158     GL_ERROR_TRANSLATE(GL_INVALID_ENUM)
   188         }
   188         }
   189     }
   189     }
   190     return ret;
   190     return ret;
   191 }
   191 }
   192 
   192 
   193 #if 1
   193 #if 0
       
   194 #define GL_CheckError(prefix, renderer)
       
   195 #elif defined(_MSC_VER)
       
   196 #define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __FUNCTION__)
       
   197 #else
   194 #define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __PRETTY_FUNCTION__)
   198 #define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __PRETTY_FUNCTION__)
   195 #else
       
   196 #define GL_CheckError(prefix, renderer)
       
   197 #endif
   199 #endif
   198 
   200 
   199 static int
   201 static int
   200 GL_LoadFunctions(GL_RenderData * data)
   202 GL_LoadFunctions(GL_RenderData * data)
   201 {
   203 {