aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris "Koying" Browet <cbro@semperpax.com>2015-04-03 15:57:18 +0200
committerChris "Koying" Browet <cbro@semperpax.com>2015-04-04 10:45:31 +0200
commit22c21173039213094a7956001944dc25b03d4158 (patch)
tree99152ae694781282e8e7e9669fbbd586b2ba9864
parent96d53d4275bbd05aeaec0449728f335bb084421c (diff)
FIX: [egl;font] assert if cache texture was not created
-rw-r--r--xbmc/guilib/GUIFontTTFGL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/guilib/GUIFontTTFGL.cpp b/xbmc/guilib/GUIFontTTFGL.cpp
index 79f32ddef1..8e5aa611cd 100644
--- a/xbmc/guilib/GUIFontTTFGL.cpp
+++ b/xbmc/guilib/GUIFontTTFGL.cpp
@@ -140,8 +140,6 @@ bool CGUIFontTTFGL::FirstBegin()
VerifyGLState();
}
-#else
- g_Windowing.EnableGUIShader(SM_FONTS);
#endif
return true;
}
@@ -168,6 +166,8 @@ void CGUIFontTTFGL::LastEnd()
glDisable(GL_TEXTURE_2D);
#else
// GLES 2.0 version.
+ g_Windowing.EnableGUIShader(SM_FONTS);
+
CreateStaticVertexBuffers();
GLint posLoc = g_Windowing.GUIShaderGetPos();