Commit b28d041a authored by Frédéric Larue's avatar Frédéric Larue
Browse files

gpuAssert() made more robust to ensure that no previous GL error may cause assert test to fail.

parent f0cb3a88
......@@ -24,6 +24,7 @@
#define gpuAssert( expression ) \
{ \
glGetError(); \
expression; \
GLenum err = glGetError(); \
if( err != GL_NO_ERROR ) \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment