]> git.xonotic.org Git - xonotic/netradiant.git/commit
radiant/image: load fallback images with png loader even if game does not support...
authorThomas Debesse <dev@illwieckz.net>
Thu, 21 May 2020 22:43:20 +0000 (00:43 +0200)
committerThomas Debesse <dev@illwieckz.net>
Fri, 22 May 2020 08:36:57 +0000 (10:36 +0200)
commit09c7358f15264e0436c4f1b762d942e2570af831
tree21a2fe08f179fce1420e786e85f7c93cd5025515
parent4d309f54ecfa248000f5a6fe88d0b7713bde4715
radiant/image: load fallback images with png loader even if game does not support png, fix #141

Current implementation has a minor issue, when "Hide Fallback" option is
disabled, the fallback image does not appear in texture browser before radiant
makes use of it (for example creating a brush before selecting a texture).

Since "Hide Fallback" option is enabled by default and it never makes sense
to apply those fallback intentionally, I don't care for the moment.

I would like to see a better implementation that would work for all
editor images (like the one set with `qer_editorImage` shader keyword).
radiant/image.cpp
radiant/textures.cpp