Font preloader, new demod no-move drag fix

This commit is contained in:
Charles J. Cliffe
2014-12-16 21:03:45 -05:00
parent 02cf2099a9
commit 912ef930a2
3 changed files with 9 additions and 6 deletions
+4 -1
View File
@@ -54,7 +54,10 @@ void PrimaryGLContext::CheckGLError() {
PrimaryGLContext::PrimaryGLContext(wxGLCanvas *canvas, wxGLContext *sharedContext) :
wxGLContext(canvas, sharedContext) {
SetCurrent(*canvas);
// Pre-load fonts
for (int i = 0; i < GLFONT_MAX; i++) {
getFont((GLFontSize)i);
}
CheckGLError();
}