handmade/include/glCheckErrors.h
Bubblegumdrop 46b2ed80ae Initial commit.
Another nuke! This time, trying to do a client <-> server thing.

Also a bit of messing with Lua.
2022-01-02 19:28:16 -05:00

15 lines
264 B
C

#pragma once
#include <stdio.h>
#include <GL/glew.h>
#define glCheckErrors() \
do \
{ \
GLenum err; \
while ((err = glGetError()) != GL_NO_ERROR) \
{ \
fprintf (stderr, "%s:%d: %s\n", __FILE__, __LINE__, glewGetErrorString(err)); \
} \
} while (0)