print the GL version in use
[gltest.git] / glwindow.cpp
index ca6dbb95018d91fa416360a542fe32edc1c0ac33..64d007575bf2e9dc6310e057c27a0fdecc5849f9 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #include "glwindow.h"
+#include "glutil.h"
 
 #include <assert.h>
 #include <X11/Xutil.h>
@@ -60,6 +61,7 @@ void GLWindow::create(unsigned int width, unsigned int height)
        this->width = width;
        this->height = height;
        backend->createContext(window);
+       printf("Using GL version: %s\n", glGetString(GL_VERSION));
        initGL();
        resizeGL(width, height);
 }