1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-21 17:05:20 +01:00

Reapply "Prefer GL3 driver over legacy GL driver"

This reverts commit 0fa56a9f7c.
This commit is contained in:
sfan5
2025-11-14 20:04:54 +01:00
parent 37c3c89b03
commit bf01cdf823
6 changed files with 15 additions and 19 deletions

View File

@@ -376,8 +376,8 @@ std::vector<video::E_DRIVER_TYPE> RenderingEngine::getSupportedVideoDrivers()
// Only check these drivers. We do not support software and D3D in any capacity.
// ordered by preference (best first)
static const video::E_DRIVER_TYPE glDrivers[] = {
video::EDT_OPENGL,
video::EDT_OPENGL3,
video::EDT_OPENGL,
video::EDT_OGLES2,
video::EDT_NULL,
};
@@ -411,10 +411,10 @@ void RenderingEngine::draw_scene(video::SColor skycolor, bool show_hud,
const VideoDriverInfo &RenderingEngine::getVideoDriverInfo(video::E_DRIVER_TYPE type)
{
static const std::unordered_map<int, VideoDriverInfo> driver_info_map = {
{(int)video::EDT_NULL, {"null", "NULL Driver"}},
{(int)video::EDT_OPENGL, {"opengl", "OpenGL"}},
{(int)video::EDT_NULL, {"null", "NULL Driver"}},
{(int)video::EDT_OPENGL, {"opengl", "OpenGL (legacy)"}},
{(int)video::EDT_OPENGL3, {"opengl3", "OpenGL 3+"}},
{(int)video::EDT_OGLES2, {"ogles2", "OpenGL ES2"}},
{(int)video::EDT_OGLES2, {"ogles2", "OpenGL ES 2"}},
};
return driver_info_map.at((int)type);
}

View File

@@ -308,7 +308,7 @@ void set_default_settings()
// Effects
settings->setDefault("enable_post_processing", "true");
settings->setDefault("post_processing_texture_bits", "16");
settings->setDefault("post_processing_texture_bits", "10");
settings->setDefault("directional_colored_fog", "true");
settings->setDefault("inventory_items_animations", "false");
settings->setDefault("mip_map", "false");