Fix Compatibility Rendering (GLES3) on old and low budget devices.

Co-Authored-By: joined72 <19651914+joined72@users.noreply.github.com>
This commit is contained in:
Alexander Hartmann
2024-01-19 00:07:28 +01:00
parent 16d61427ca
commit e17cecf54a
8 changed files with 84 additions and 18 deletions
+5
View File
@@ -166,6 +166,11 @@ Config::Config() {
max_renderable_elements = GLOBAL_GET("rendering/limits/opengl/max_renderable_elements");
max_renderable_lights = GLOBAL_GET("rendering/limits/opengl/max_renderable_lights");
max_lights_per_object = GLOBAL_GET("rendering/limits/opengl/max_lights_per_object");
//Adreno 3xx Compatibility
const String rendering_device_name = String::utf8((const char *)glGetString(GL_RENDERER));
//TODO: Check the number between 300 and 399(?)
adreno_3xx_compatibility = (rendering_device_name.left(13) == "Adreno (TM) 3");
}
Config::~Config() {