Stop mipmap allocation for textures

This commit is contained in:
Leith Bade
2014-12-02 02:29:07 +11:00
parent 763e636fd7
commit 204700ff7e
4 changed files with 4 additions and 1 deletions

View File

@@ -201,6 +201,7 @@ void SpriteAtlas::bind(bool linear) {
if (!texture) {
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
first = true;