Blame view

stim/gl/error.h 350 Bytes
f1402849   dmayerich   renewed commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  #ifndef RTS_OPENGL_ERROR

  #define RTS_OPENGL_ERROR

  

  #include <stdio.h>

  #include <GL/gl.h>

  #include <GL/glu.h>

  

  #define CHECK_OPENGL_ERROR \

  { GLenum error; \

     while ( (error = glGetError()) != GL_NO_ERROR) { \

     printf( "OpenGL ERROR: %s\nCHECK POINT: %s (line %d)\n", gluErrorString(error), __FILE__, __LINE__ ); \

     } \

  }

  

f31cc509   David Mayerich   added opengl erro...
15
  

f1402849   dmayerich   renewed commit
16
  #endif