medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 13295fa8733755fb5bdad5e58a95946f71dcf2d2
parent 0dcaa4b9de86010153ccce66c4f349fa36ea76b5
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Nov  5 16:56:19 +0200

Remove glterrible

Diffstat:
intrinsics.h | 17-----------------
1 file changed, 0 insertions(+), 17 deletions(-)
diff --git a/intrinsics.h b/intrinsics.h @@ -154,21 +154,4 @@ inline u8 * file_get_contents( const char * path, size_t * out_len = NULL ) { return contents; } -#include "glad.h" -inline void glterrible() { - GLenum err = glGetError(); - const char * error; - - switch(err) { - case GL_INVALID_OPERATION: error="INVALID_OPERATION"; break; - case GL_INVALID_ENUM: error="INVALID_ENUM"; break; - case GL_INVALID_VALUE: error="INVALID_VALUE"; break; - case GL_OUT_OF_MEMORY: error="OUT_OF_MEMORY"; break; - case GL_INVALID_FRAMEBUFFER_OPERATION: error="INVALID_FRAMEBUFFER_OPERATION"; break; - default: error = "shit bro"; break; - } - - printf( "GL error: %s\n", error ); -} - #endif // _INTRINSICS_H_