set active texture in GL, not Font module

This commit is contained in:
Josh Holtrop 2014-08-05 21:36:47 -04:00
parent 81d5bca7bb
commit f17351072f
2 changed files with 1 additions and 1 deletions

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);

View File

@ -107,6 +107,7 @@ void GL_Load()
} }
glEnable(GL_SCISSOR_TEST); glEnable(GL_SCISSOR_TEST);
glActiveTexture(GL_TEXTURE0);
loaded = true; loaded = true;
} }