only change shader if needed

This commit is contained in:
degasus 2013-01-15 14:22:40 +01:00
commit 687d74e6c2
3 changed files with 14 additions and 21 deletions

View file

@ -283,8 +283,6 @@ void RasterFont::printMultilineText(const char *text, double start_x, double sta
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, texture);
glDrawArrays(GL_TRIANGLES, 0, usage/4);
glUseProgram(0);
}
}