virtualx-engine/drivers/gles3
Daniel Rakos e34eb5c26c 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.
2019-05-08 17:22:40 +02:00
..
shaders fixed bug in mip map sigma 2019-04-12 17:48:38 -07:00
rasterizer_canvas_gles3.cpp Added ability for multiple images to be imported as an atlas 2019-04-19 15:56:34 -03:00
rasterizer_canvas_gles3.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
rasterizer_gles3.cpp Merge pull request #27067 from shartte/remove-context-gl 2019-04-07 12:38:55 +02:00
rasterizer_gles3.h Add option to have viewport render into supplied texture 2019-04-06 08:24:58 +11:00
rasterizer_scene_gles3.cpp Merge pull request #27673 from qarmin/small_fixes 2019-04-22 12:00:34 +02:00
rasterizer_scene_gles3.h Fixed handling of depth texture so it's resolved and bound when needed 2019-03-26 17:48:22 +01:00
rasterizer_storage_gles3.cpp Fix texture resource reload bug 2019-05-08 17:22:40 +02:00
rasterizer_storage_gles3.h Merge pull request #25670 from aqnuep/bake_mode_affect_gi_prove 2019-04-30 18:33:34 +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 Style: Apply new changes from clang-format 8.0 2019-04-09 17:09:48 +02:00