aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-03 20:17:18 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-03 20:17:18 +0200
commita2af490b7b4507b343418b3149fee249d6a81f2b (patch)
treebd8dffff64bde4937fee1410b6605c52d838095a
parent4964daa5be6e89c0cea51b06c8b9c608b47306c4 (diff)
downloadminetest-a2af490b7b4507b343418b3149fee249d6a81f2b.tar.gz
minetest-a2af490b7b4507b343418b3149fee249d6a81f2b.tar.bz2
minetest-a2af490b7b4507b343418b3149fee249d6a81f2b.zip
Disable mipmapping because it is sometimes ugly
-rw-r--r--src/main.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6739a7759..b25b2fa35 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1407,6 +1407,21 @@ int main(int argc, char *argv[])
if (device == 0)
return 1; // could not create selected driver.
+ /*
+ Continue initialization
+ */
+
+ video::IVideoDriver* driver = device->getVideoDriver();
+
+ // Disable mipmaps (because some of them look ugly)
+ driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, false);
+
+ /*
+ This changes the minimum allowed number of vertices in a VBO.
+ Default is 500.
+ */
+ //driver->setMinHardwareBufferVertexCount(50);
+
// Set the window caption
device->setWindowCaption(L"Minetest [Main Menu]");
@@ -1439,18 +1454,6 @@ int main(int argc, char *argv[])
else
input = new RealInputHandler(device, &receiver);
- /*
- Continue initialization
- */
-
- //video::IVideoDriver* driver = device->getVideoDriver();
-
- /*
- This changes the minimum allowed number of vertices in a VBO.
- Default is 500.
- */
- //driver->setMinHardwareBufferVertexCount(50);
-
scene::ISceneManager* smgr = device->getSceneManager();
guienv = device->getGUIEnvironment();