X-Git-Url: https://git.ralfj.de/gltest.git/blobdiff_plain/a0cb14324fbd2791d62df09e8d10541f280b60ee..520f5e8cbcbbe69da6fa878fac2200f7bf302d68:/glxbackend.cpp?ds=sidebyside 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()