Enable mipmaps for imported textures.
authorMartin Lambers <marlam@marlam.de>
Thu, 18 Apr 2019 08:39:58 +0000 (10:39 +0200)
committerMartin Lambers <marlam@marlam.de>
Thu, 18 Apr 2019 08:39:58 +0000 (10:39 +0200)
libcamsim/importer.cpp

index c0f25c7..10f32e5 100644 (file)
@@ -190,7 +190,7 @@ static unsigned int createTex(
                     GL_RGBA, GL_UNSIGNED_BYTE, img.constBits());
             gl->glGenerateMipmap(GL_TEXTURE_2D);
             gl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
-            gl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+            gl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
             switch (mapmode[0]) {
             case aiTextureMapMode_Wrap:
                 gl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);