godot/drivers/gles2
Daniel Rakos a670c66457 Fix texture resource reload bug
If a non-imported texture resource file (e.g. DDS) gets updated the editor
doesn't reload it. The cause of the problem is two-fold:

First, the code of ImageTexture assumes that textures are always imported
from an image, but that's not the case for e.g. DDS. This change thus adds
code to issue a resource reload in case an image reload is not possible
(which is the case for non-imported texture resources).

Second, the code is filled with bogus calls to Image::get_image_data_size()
to determine the mipmap offset when that should be done using
Image::get_image_mipmap_offset(). Previous code literally passed the integer
mip level value to Image::get_image_data_size() where that actually expects
a boolean. Thus this part of the change might actually solve some other
issues as well.

To be pedantic, the texture_get_data() funciton of the rasterizer drivers is
still quite a mess, as it only ever returns the whole mipchain when
GLES_OVER_GL is set (practically only on desktop builds) but this change does
not attempt to resolve that.

(cherry picked from commit e34eb5c26c)
2019-07-17 09:49:34 +02:00
..
shaders Adds flag AMBIENT_LIGHT_DISABLED to GLES2 2019-07-17 09:48:53 +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 Fixed GLES2 transparency order 2019-07-17 09:49:12 +02:00
rasterizer_scene_gles2.h Fixed GLES2 transparency order 2019-07-17 09:49:12 +02:00
rasterizer_storage_gles2.cpp Fix texture resource reload bug 2019-07-17 09:49:34 +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