improve opengl error logs

This commit is contained in:
FunkyFr3sh 2024-07-26 08:17:56 +02:00
parent 2efc7f8a59
commit 3a579e36cc
2 changed files with 62 additions and 16 deletions

View file

@ -7,6 +7,15 @@
#define TEXTURE_COUNT 4
#define FBO_COUNT 2
#ifdef _DEBUG
#define GL_CHECK(stmt) do { \
stmt; \
ogl_check_error(#stmt); \
} while (0)
#else
#define GL_CHECK(stmt) stmt
#endif
typedef struct OGLRENDERER
{
HWND hwnd;