godot/drivers/gles2
lawnjelly 3433017354 Fixes crash with rigged meshes on some OpenGLES2 devices
Non-tools OpenGLES2 devices that use the USE_SKELETON_SOFTWARE path (i.e. do not support float texture) depend on surface->data being set containing the bone IDs and weights (rasterizer_scene_gles2.cpp, line 1456, RasterizerSceneGLES2::_setup_geometry). However currently if TOOLS_ENABLED is not defined, surface->data is not stored in main memory in rasterizer_storage_gles2.cpp. This causes a crash in rasterizer_scene_gles2.cpp when a rigged object comes into view.

This fix addresses the specific case of skinned objects when USE_SKELETON_SOFTWARE is active, and stores a copy of the bone data, as is done when TOOLS_ENABLED is defined. This fixes the crash by allowing the same mechanism as on desktop, without adding the memory overhead of storing all vertex data where not required.

Fixes #28298

(cherry picked from commit e36e9fdb1c)
2019-07-17 09:43:16 +02:00
..
shaders Fix SHADOWS_DISABLED flag in GLES2 2019-07-11 11:25:31 +02:00
rasterizer_canvas_gles2.cpp Enable warnings=extra on clang and GCC testers. 2019-04-03 16:52:01 +02:00
rasterizer_canvas_gles2.h Make alpha 1.0 when using texscreen, fixes #25850 2019-02-21 19:43:34 -03:00
rasterizer_gles2.cpp GLES2: Clarify why we exclude debug code on iOS 2019-01-11 20:04:13 +01:00
rasterizer_gles2.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
rasterizer_scene_gles2.cpp Added GLES2 RenderStorage Info calculations. 2019-04-20 20:08:54 +02:00
rasterizer_scene_gles2.h Strive for maximum compatibility in GLES2 regarding depth buffers. 2019-03-01 11:21:21 -03:00
rasterizer_storage_gles2.cpp Fixes crash with rigged meshes on some OpenGLES2 devices 2019-07-17 09:43:16 +02:00
rasterizer_storage_gles2.h Use glCopyTexSubImage2D instead of glCopyTexImage2D, should be safer and faster. 2019-03-07 00:14:13 -03:00
SCsub SCons: Build thirdparty code in own env, disable warnings 2018-09-28 14:07:39 +02:00
shader_compiler_gles2.cpp Many separate fixes to ensure non power of 2 textures work on GLES2, closes #25897 and many others 2019-02-24 22:36:53 -03:00
shader_compiler_gles2.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
shader_gles2.cpp Fix typo in 7bad170 2019-03-02 00:45:01 +01:00
shader_gles2.h Massive improvement to GLES2 performance, rewrote most ShaderGLES2 class. 2019-02-27 23:49:34 -03:00