Elevate Engine 1
Loading...
Searching...
No Matches
GLDebug.h
Go to the documentation of this file.
1#pragma once
2
4
5#ifdef EE_DEBUG
6#define GLCheck(x) \
7 x; \
8 { GLenum err = glGetError(); \
9 if (err != GL_NO_ERROR) EE_CORE_ERROR("OpenGL Error {} at {}:{}", err, __FILE__, __LINE__); }
10#else
11#define GLCheck(x) x
12#endif