Reversed decreasing resolution for Emscripten, as it's causing graphical glitches

This commit is contained in:
Yousef Khadadeh 2025-08-22 14:30:30 +03:00
parent 5eb66dabdd
commit a010f306c6

View file

@ -230,8 +230,7 @@ void DrawingProgramCache::build_bvh_node_coords_and_resolution(DrawingProgramCac
// NOTE: We're assuming that devices using OpenGLES are mobile devices have less VRAM, so we decrease the size of the draw cache
// This isn't necessarily true, but it can improve performance on those devices without adding more settings
// Emscripten has less RAM to work with, so this is a good assumption to make
#if defined(__EMSCRIPTEN__) || defined(USE_BACKEND_OPENGLES_3_0)
#if defined(USE_BACKEND_OPENGLES_3_0)
const int MAX_DIMENSION_RESOLUTION = 1024;
#else
const int MAX_DIMENSION_RESOLUTION = 2048;