X-Git-Url: https://git.ralfj.de/gltest.git/blobdiff_plain/a0cb14324fbd2791d62df09e8d10541f280b60ee..dac0dad539be501c94cb8646d979e6e7787e1992:/glxbackend.cpp diff --git a/glxbackend.cpp b/glxbackend.cpp index b238382..3ebc878 100644 --- a/glxbackend.cpp +++ b/glxbackend.cpp @@ -17,6 +17,7 @@ */ #include "glxbackend.h" +#include "glutil.h" #include #include @@ -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()