mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
Disable mipmapping because it is sometimes ugly
This commit is contained in:
parent
4964daa5be
commit
a2af490b7b
27
src/main.cpp
27
src/main.cpp
@ -1407,6 +1407,21 @@ int main(int argc, char *argv[])
|
|||||||
if (device == 0)
|
if (device == 0)
|
||||||
return 1; // could not create selected driver.
|
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
|
// Set the window caption
|
||||||
device->setWindowCaption(L"Minetest [Main Menu]");
|
device->setWindowCaption(L"Minetest [Main Menu]");
|
||||||
|
|
||||||
@ -1439,18 +1454,6 @@ int main(int argc, char *argv[])
|
|||||||
else
|
else
|
||||||
input = new RealInputHandler(device, &receiver);
|
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();
|
scene::ISceneManager* smgr = device->getSceneManager();
|
||||||
|
|
||||||
guienv = device->getGUIEnvironment();
|
guienv = device->getGUIEnvironment();
|
||||||
|
Loading…
Reference in New Issue
Block a user