add {glx,egl}2test using the GL2 API in a classic OpenGL context
[gltest.git] / glxbackend.cpp
index b2383826b66c257090493d5c530f09f27b2aa6c9..3ebc8789116df308498d936260124b3ab8e275b3 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #include "glxbackend.h"
+#include "glutil.h"
 
 #include <stdio.h>
 #include <assert.h>
@@ -76,6 +77,9 @@ void GLXBackend::createContext(Window window)
        context = glXCreateContext(display, vi, 0, GL_TRUE);                             
        glXMakeCurrent(display, window, context);                                      
        assert(glXIsDirect(display, context));
+       printf("Using GL version: %s\n", glGetString(GL_VERSION));
+       // initialise GL utilities
+       resolveFunctionPointers((T_glGetProcAddress)glXGetProcAddress);
 }
 
 GLXBackend::~GLXBackend()