*/
#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);
}
if (strcmp(XGetAtomName(display, event.xclient.message_type), "WM_PROTOCOLS") == 0 &&
strcmp(XGetAtomName(display, event.xclient.data.l[0]), "WM_DELETE_WINDOW") == 0)
{
- XDestroyWindow(display, window);
- window = 0;
return;
}
break;