Crude texture caching

This commit is contained in:
2014-04-06 21:25:05 +02:00
parent 412d53a1f7
commit 0896f540fe
3 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ void Renderer::DrawScene()
glBindVertexArray(model->VAO);
for (auto texGroup : model->TextureGroups) {
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, texGroup.Texture->texture);
glBindTexture(GL_TEXTURE_2D, *texGroup.Texture);
glDrawArrays(GL_TRIANGLES, texGroup.StartIndex, texGroup.EndIndex - texGroup.StartIndex + 1);
}
}