godot/drivers/gles3
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 fixed bug in mip map sigma 2019-04-20 20:24:44 +02:00
rasterizer_canvas_gles3.cpp GLES3: Fix regression in particles buffer initialization 2019-04-06 21:13:07 +02:00
rasterizer_canvas_gles3.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
rasterizer_gles3.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
rasterizer_gles3.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
rasterizer_scene_gles3.cpp Respect keep_3d_linear when transparent_bg is on. 2019-04-20 20:03:16 +02:00
rasterizer_scene_gles3.h Fixed handling of depth texture so it's resolved and bound when needed 2019-04-03 16:56:11 +02:00
rasterizer_storage_gles3.cpp Fix texture resource reload bug 2019-07-17 09:49:34 +02:00
rasterizer_storage_gles3.h Fixed handling of depth texture so it's resolved and bound when needed 2019-04-03 16:56:11 +02:00
SCsub BuildSystem: generated files have .gen.extension 2017-06-25 07:55:01 +07:00
shader_compiler_gles3.cpp Fix typos with codespell 2019-02-13 09:23:29 +01:00
shader_compiler_gles3.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
shader_gles3.cpp Massive improvement to GLES2 performance, rewrote most ShaderGLES2 class. 2019-02-27 23:49:34 -03:00
shader_gles3.h Properly dispose of custom shaders, closes #19300 2019-01-25 19:28:27 -03:00