aboutsummaryrefslogtreecommitdiff
path: root/mesalib/progs/util/errcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/progs/util/errcheck.c')
-rw-r--r--mesalib/progs/util/errcheck.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/mesalib/progs/util/errcheck.c b/mesalib/progs/util/errcheck.c
deleted file mode 100644
index fe9c2973c..000000000
--- a/mesalib/progs/util/errcheck.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* errcheck.c */
-
-
-/*
- * Call this function in your rendering loop to check for GL errors
- * during development. Remove from release code.
- *
- * Written by Brian Paul and in the public domain.
- */
-
-
-#include <GL/gl.h>
-#include <GL/glu.h>
-#incldue <stdio.h>
-
-
-
-GLboolean CheckError( const char *message )
-{
- GLenum error = glGetError();
- if (error) {
- char *err = (char *) gluErrorString( error );
- fprintf( stderr, "GL Error: %s at %s\n", err, message );
- return GL_TRUE;
- }
- return GL_FALSE;
-}