MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / gl_error_string

Function gl_error_string

src/core/opengl.cpp:12–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "shaders.tpp"
11
12const char *gl_error_string(const GLenum err)
13{
14 switch (err)
15 {
16 case GL_INVALID_ENUM:
17 return "GL_INVALID_ENUM";
18
19 case GL_INVALID_VALUE:
20 return "GL_INVALID_VALUE";
21
22 case GL_INVALID_OPERATION:
23 return "GL_INVALID_OPERATION";
24
25 case GL_OUT_OF_MEMORY:
26 return "GL_OUT_OF_MEMORY";
27
28 case GL_INVALID_FRAMEBUFFER_OPERATION:
29 return "GL_INVALID_FRAMEBUFFER_OPERATION";
30 }
31
32 return "UNKNOWN GL ERROR";
33}
34
35static bool disable_gl_call = false;
36void gl_call(const char *func, uint32_t line, const char *glfunc)

Callers 1

gl_callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected