13 lines
230 B
C
13 lines
230 B
C
|
|
#ifndef CHECKGLERROR_H
|
|
#define CHECKGLERROR_H
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#define checkGLError() _checkGLError(__FILE__, __LINE__)
|
|
#define GL_CHECK(x) ({x; checkGLError();})
|
|
|
|
GLenum _checkGLError(const char *fname, int lineno);
|
|
|
|
#endif
|