diff --git a/Source/Core/VideoBackends/OGL/GLUtil.cpp b/Source/Core/VideoBackends/OGL/GLUtil.cpp index d2ffdaf803..c90d114426 100644 --- a/Source/Core/VideoBackends/OGL/GLUtil.cpp +++ b/Source/Core/VideoBackends/OGL/GLUtil.cpp @@ -114,9 +114,9 @@ GLuint OpenGL_CompileProgram(const char* vertexShader, const char* fragmentShade } -GLuint OpenGL_ReportGLError(const char *function, const char *file, int line) +GLenum OpenGL_ReportGLError(const char *function, const char *file, int line) { - GLint err = glGetError(); + GLenum err = glGetError(); if (err != GL_NO_ERROR) { ERROR_LOG(VIDEO, "%s:%d: (%s) OpenGL error 0x%x\n", @@ -127,7 +127,7 @@ GLuint OpenGL_ReportGLError(const char *function, const char *file, int line) bool OpenGL_ReportFBOError(const char *function, const char *file, int line) { - unsigned int fbo_status = glCheckFramebufferStatus(GL_FRAMEBUFFER); + GLenum fbo_status = glCheckFramebufferStatus(GL_FRAMEBUFFER); if (fbo_status != GL_FRAMEBUFFER_COMPLETE) { const char *error = "unknown error"; diff --git a/Source/Core/VideoBackends/OGL/GLUtil.h b/Source/Core/VideoBackends/OGL/GLUtil.h index 16c91baa65..33be8a5d9e 100644 --- a/Source/Core/VideoBackends/OGL/GLUtil.h +++ b/Source/Core/VideoBackends/OGL/GLUtil.h @@ -19,7 +19,7 @@ void InitInterface(); GLuint OpenGL_CompileProgram(const char *vertexShader, const char *fragmentShader); // Error reporting - use the convenient macros. -GLuint OpenGL_ReportGLError(const char *function, const char *file, int line); +GLenum OpenGL_ReportGLError(const char *function, const char *file, int line); bool OpenGL_ReportFBOError(const char *function, const char *file, int line); #if defined(_DEBUG) || defined(DEBUGFAST)