improve opengl error logs
This commit is contained in:
parent
2efc7f8a59
commit
3a579e36cc
2 changed files with 62 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue