godot/drivers
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
..
alsa Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
alsamidi Drivers, main, servers: Ensure classes match their header filename 2019-02-12 14:39:47 +01:00
convex_decomp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
coreaudio Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
coremidi Drivers, main, servers: Ensure classes match their header filename 2019-02-12 14:39:47 +01:00
dummy Merge pull request #25670 from aqnuep/bake_mode_affect_gi_prove 2019-04-30 18:33:34 +02:00
gl_context SCons: Always use env.Prepend for CPPPATH 2019-04-30 13:12:06 +02:00
gles2 Fix texture resource reload bug 2019-05-08 17:22:40 +02:00
gles3 Fix texture resource reload bug 2019-05-08 17:22:40 +02:00
png SCons: Always use env.Prepend for CPPPATH 2019-04-30 13:12:06 +02:00
pulseaudio Add -Wshadow=local to warnings and fix reported issues. 2019-02-20 19:44:12 +01:00
unix Ignore a warning in _get_socket_error (-Wlogical-op). 2019-05-02 11:11:52 +02:00
wasapi Fix WASAPI driver not working when the device doesn't supports the mix format 2019-02-23 00:01:17 -03:00
windows Add FileAccess::set_unix_permissions for Unix platforms 2019-04-07 15:45:30 -03:00
winmidi Drivers, main, servers: Ensure classes match their header filename 2019-02-12 14:39:47 +01:00
xaudio2 SCons: Review uses of CCFLAGS, CXXFLAGS and CPPFLAGS 2019-04-24 16:57:58 +02:00
register_driver_types.cpp Consistency in resource format saver/loader de-registration 2019-01-10 12:45:57 +01:00
register_driver_types.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
SCsub Drop RtAudio driver on Windows 2019-02-20 13:47:01 +01:00