add {glx,egl}2test using the GL2 API in a classic OpenGL context
[gltest.git] / eglbackend.cpp
index cbe724cff375cbb5e22329d4f593bfdd437102ca..ef27997391856b882859bb57b4259ba6440123fc 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #include "eglbackend.h"
+#include "glutil.h"
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -120,6 +121,9 @@ void EGLBackend::createContext(Window window)
                exitEglError("Failed to create context");
        if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE)
                exitEglError("Failed to make context current");
+       printf("Using GL version: %s\n", glGetString(GL_VERSION));
+       // initialise GL utilities
+       resolveFunctionPointers(eglGetProcAddress);
 }
 
 EGLBackend::~EGLBackend()