exitEglError("Failed to get EGL display");
if (eglInitialize(display, &eglMajor, &eglMinor) == EGL_FALSE)
exitEglError("Failed to initialize EGL");
- printf("Using EGL version %d.%d\n", eglMajor, eglMinor);
+ printf("Using EGL version: %d.%d\n", eglMajor, eglMinor);
if (eglMajor == 1 && eglMinor < 3) {
fprintf(stderr, "Need at least EGL 1.3 to function properly\n");
exit(1);
*/
#include "glwindow.h"
+#include "glutil.h"
#include <assert.h>
#include <X11/Xutil.h>
this->width = width;
this->height = height;
backend->createContext(window);
+ printf("Using GL version: %s\n", glGetString(GL_VERSION));
initGL();
resizeGL(width, height);
}
// debugging: show version information
int glxMajor, glxMinor;
glXQueryVersion(display, &glxMajor, &glxMinor);
- printf("Using GLX version %d.%d\n", glxMajor, glxMinor);
+ printf("Using GLX version: %d.%d\n", glxMajor, glxMinor);
// check for swap control functions
const char *extensions = glXQueryExtensionsString(display, DefaultScreen(display));
if (std::string(extensions).find("GLX_MESA_swap_control") != std::string::npos) {