OGL: use GL_TEXTURE* constants

This commit is contained in:
Tillmann Karras
2015-05-25 15:14:20 +02:00
parent a26cf63783
commit 285ac34bf3
5 changed files with 14 additions and 14 deletions

View File

@ -142,7 +142,7 @@ RasterFont::RasterFont()
{
// generate the texture
glGenTextures(1, &texture);
glActiveTexture(GL_TEXTURE0+8);
glActiveTexture(GL_TEXTURE8);
glBindTexture(GL_TEXTURE_2D, texture);
std::vector<u32> texture_data(CHAR_WIDTH * CHAR_COUNT * CHAR_HEIGHT);
for (int y = 0; y < CHAR_HEIGHT; y++)