projects
/
gltest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
print the GL version in use
[gltest.git]
/
glutil_gl2.cpp
diff --git
a/glutil_gl2.cpp
b/glutil_gl2.cpp
index c14b3a5d89f4823ab11b98900f3c96075e61673c..ad89138d14f3748e90a52fd8919c3a4372b9794f 100644
(file)
--- a/
glutil_gl2.cpp
+++ b/
glutil_gl2.cpp
@@
-18,8
+18,13
@@
#include <stdio.h>
#include <stdlib.h>
+
#include "glutil.h"
+#if defined(CON_GL1)
+#error "GL1 contexts do not support GL2 functionality"
+#endif
+
// shaders
static const char *vertex_shader_source =
"#version 100 \n\