From b18209c904f421f3065d610718d7d9e9b8b9211f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 23 Jun 2017 11:38:45 -0400 Subject: Switch to GLES2 Closes #13 --- render/gles3/util.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 render/gles3/util.c (limited to 'render/gles3/util.c') diff --git a/render/gles3/util.c b/render/gles3/util.c deleted file mode 100644 index a3aa87f3..00000000 --- a/render/gles3/util.c +++ /dev/null @@ -1,38 +0,0 @@ -#include -#include -#include -#include -#include "render/gles3.h" - -const char *gles3_strerror(GLenum err) { - switch (err) { - case GL_INVALID_ENUM: - return "Invalid enum"; - case GL_INVALID_VALUE: - return "Invalid value"; - case GL_INVALID_OPERATION: - return "Invalid operation"; - case GL_OUT_OF_MEMORY: - return "Out of memory"; - case GL_INVALID_FRAMEBUFFER_OPERATION: - return "Invalid framebuffer operation"; - default: - return "Unknown error"; - } -} - -bool _gles3_flush_errors(const char *file, int line) { - GLenum err; - bool failure = false; - while ((err = glGetError()) != GL_NO_ERROR) { - failure = true; - if (err == GL_OUT_OF_MEMORY) { - // The OpenGL context is now undefined - _wlr_log(L_ERROR, "[%s:%d] Fatal GL error: out of memory", file, line); - exit(1); - } else { - _wlr_log(L_ERROR, "[%s:%d] GL error %d %s", file, line, err, gles3_strerror(err)); - } - } - return failure; -} -- cgit v1.2.3