]> git.lizzy.rs Git - shadowclad.git/commitdiff
Make textures render nicely
authoroutfrost <kotlet.bahn@gmail.com>
Tue, 29 Jan 2019 19:28:29 +0000 (20:28 +0100)
committeroutfrost <kotlet.bahn@gmail.com>
Tue, 29 Jan 2019 19:28:29 +0000 (20:28 +0100)
level.c

diff --git a/level.c b/level.c
index 787461d5bf09888c673f2afc8f4b142b7a699267..edcaa23384695e864d841bd2e2928f926880e21e 100644 (file)
--- a/level.c
+++ b/level.c
@@ -36,6 +36,7 @@ void initLevel() {
                
                for (unsigned int i = 0; i < numTextures; ++i) {
                        glBindTexture(GL_TEXTURE_2D, blockWall01.textureIds[i]);
+                       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
                        
                        AiString originalTexturePath;
                        if (aiGetMaterialTexture(sceneData->mMaterials[sceneData->mMeshes[i]->mMaterialIndex],