diff --git a/lib/graphics_engine/src/ge_vulkan_array_texture.cpp b/lib/graphics_engine/src/ge_vulkan_array_texture.cpp index 442cb014a..d330ca6ac 100644 --- a/lib/graphics_engine/src/ge_vulkan_array_texture.cpp +++ b/lib/graphics_engine/src/ge_vulkan_array_texture.cpp @@ -181,6 +181,8 @@ void GEVulkanArrayTexture::reloadInternal(const std::vector& list, } else { + if (i == 0) + m_internal_format = VK_FORMAT_R8G8B8A8_UNORM; mipmap_generator = new GEMipmapGenerator(texture_data, 4, m_size, normal_map); } diff --git a/lib/graphics_engine/src/ge_vulkan_texture.cpp b/lib/graphics_engine/src/ge_vulkan_texture.cpp index 24a20505e..af318288a 100644 --- a/lib/graphics_engine/src/ge_vulkan_texture.cpp +++ b/lib/graphics_engine/src/ge_vulkan_texture.cpp @@ -180,6 +180,8 @@ bool GEVulkanTexture::createTextureImage(uint8_t* texture_data, } else { + m_internal_format = (isSingleChannel() ? + VK_FORMAT_R8_UNORM : VK_FORMAT_R8G8B8A8_UNORM); mipmap_generator = new GEMipmapGenerator(texture_data, channels, m_size, normal_map); } diff --git a/src/states_screens/dialogs/custom_video_settings.cpp b/src/states_screens/dialogs/custom_video_settings.cpp index f4c6e9fcf..55891ee97 100644 --- a/src/states_screens/dialogs/custom_video_settings.cpp +++ b/src/states_screens/dialogs/custom_video_settings.cpp @@ -30,7 +30,9 @@ #include "utils/translation.hpp" #include - +#ifndef SERVER_ONLY +#include +#endif using namespace GUIEngine; using namespace irr; @@ -167,6 +169,9 @@ GUIEngine::EventPropagation CustomVideoSettingsDialog::processEvent(const std::s UserConfigParams::m_texture_compression = getWidget("texture_compression")->getState(); +#ifndef SERVER_ONLY + GE::getGEConfig()->m_texture_compression = UserConfigParams::m_texture_compression; +#endif UserConfigParams::m_particles_effects = getWidget("particles_effects")->getValue();