Linux somewhat functional

This commit is contained in:
Charles J. Cliffe
2015-01-18 01:36:28 -05:00
parent c04779e91b
commit 963e26bc07
6 changed files with 78 additions and 35 deletions
+2
View File
@@ -54,11 +54,13 @@ void PrimaryGLContext::CheckGLError() {
PrimaryGLContext::PrimaryGLContext(wxGLCanvas *canvas, wxGLContext *sharedContext) :
wxGLContext(canvas, sharedContext) {
SetCurrent(*canvas);
#ifndef __linux__
// Pre-load fonts
for (int i = 0; i < GLFONT_MAX; i++) {
getFont((GLFontSize) i);
}
CheckGLError();
#endif
}
GLFont &PrimaryGLContext::getFont(GLFontSize esize) {