X-Git-Url: https://git.ralfj.de/gltest.git/blobdiff_plain/06ad8dcac2fac86d1f6715a51b50356a68ffe362..b4dc0596570275aa9def5ff63af951beb8473d58:/glutil_gl1.cpp diff --git a/glutil_gl1.cpp b/glutil_gl1.cpp index 8e31114..596704e 100644 --- a/glutil_gl1.cpp +++ b/glutil_gl1.cpp @@ -18,6 +18,10 @@ #include "glutil.h" +#if defined(CON_GLES2) +#error "GLES2 contexts do not support GL1 functionality" +#endif + // initialisation void initialise2dProjection() { @@ -37,4 +41,4 @@ void drawQuad(GLfloat red, GLfloat green, GLfloat blue, GLfloat x1, GLfloat y1, glVertex2f(x2, y2); glVertex2f(x1, y2); glEnd(); -} \ No newline at end of file +}