mirror of
https://github.com/minetest/minetest.git
synced 2024-11-04 14:53:45 +01:00
Add a setting for HighPrecisionFPU (fixes #763).
This commit is contained in:
parent
151617c552
commit
d05b15df77
@ -389,3 +389,6 @@
|
|||||||
#modstore_download_url = https://forum.minetest.net/media/
|
#modstore_download_url = https://forum.minetest.net/media/
|
||||||
#modstore_listmods_url = https://forum.minetest.net/mmdb/mods/
|
#modstore_listmods_url = https://forum.minetest.net/mmdb/mods/
|
||||||
#modstore_details_url = https://forum.minetest.net/mmdb/mod/*/
|
#modstore_details_url = https://forum.minetest.net/mmdb/mod/*/
|
||||||
|
|
||||||
|
# Makes DirectX work with LuaJIT. Disable if it causes troubles.
|
||||||
|
#high_precision_fpu = true
|
||||||
|
@ -280,6 +280,7 @@ void set_default_settings(Settings *settings)
|
|||||||
settings->setDefault("modstore_listmods_url", "https://forum.minetest.net/mmdb/mods/");
|
settings->setDefault("modstore_listmods_url", "https://forum.minetest.net/mmdb/mods/");
|
||||||
settings->setDefault("modstore_details_url", "https://forum.minetest.net/mmdb/mod/*/");
|
settings->setDefault("modstore_details_url", "https://forum.minetest.net/mmdb/mod/*/");
|
||||||
|
|
||||||
|
settings->setDefault("high_precision_fpu", "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
void override_default_settings(Settings *settings, Settings *from)
|
void override_default_settings(Settings *settings, Settings *from)
|
||||||
|
@ -1288,6 +1288,7 @@ int main(int argc, char *argv[])
|
|||||||
params.Stencilbuffer = false;
|
params.Stencilbuffer = false;
|
||||||
params.Vsync = vsync;
|
params.Vsync = vsync;
|
||||||
params.EventReceiver = &receiver;
|
params.EventReceiver = &receiver;
|
||||||
|
params.HighPrecisionFPU = g_settings->getBool("high_precision_fpu");
|
||||||
|
|
||||||
nulldevice = createDeviceEx(params);
|
nulldevice = createDeviceEx(params);
|
||||||
|
|
||||||
@ -1340,6 +1341,7 @@ int main(int argc, char *argv[])
|
|||||||
params.Stencilbuffer = false;
|
params.Stencilbuffer = false;
|
||||||
params.Vsync = vsync;
|
params.Vsync = vsync;
|
||||||
params.EventReceiver = &receiver;
|
params.EventReceiver = &receiver;
|
||||||
|
params.HighPrecisionFPU = g_settings->getBool("high_precision_fpu");
|
||||||
|
|
||||||
device = createDeviceEx(params);
|
device = createDeviceEx(params);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user