set active texture in GL, not Font module

This commit is contained in:
josh committed 2014-08-05 21:36:47 -04:00
1 parent 81d5bca7bb
commit f17351072f
2 files changed
+1 -1

No files matched your search

-1
View File
@@ -157,7 +157,6 @@ bool Glyph::load(FT_Face face, FT_ULong char_code)
width); width);
} }
glActiveTexture(GL_TEXTURE0);
m_texture = new GLTexture(); m_texture = new GLTexture();
m_texture->create(width, height); m_texture->create(width, height);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
+1
View File
@@ -107,6 +107,7 @@ void GL_Load()
} }
glEnable(GL_SCISSOR_TEST); glEnable(GL_SCISSOR_TEST);
glActiveTexture(GL_TEXTURE0);
loaded = true; loaded = true;
} }