1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Fix more -Wmaybe-uninitialized warnings with target=release_debug

I have no idea why those don't get triggered in target=debug builds.

Fixes #37461.
This commit is contained in:
Rémi Verschelde
2020-03-31 13:50:25 +02:00
parent 047cdea7fa
commit 0a2fa4d892
5 changed files with 7 additions and 10 deletions

View File

@@ -29,6 +29,7 @@
/*************************************************************************/
#include "rasterizer_storage_rd.h"
#include "core/engine.h"
#include "core/project_settings.h"
#include "servers/rendering/shader_language.h"
@@ -1664,7 +1665,7 @@ void RasterizerStorageRD::MaterialData::update_textures(const Map<StringName, Va
RasterizerStorageRD *singleton = (RasterizerStorageRD *)RasterizerStorage::base_singleton;
#ifdef TOOLS_ENABLED
Texture *roughness_detect_texture = nullptr;
RS::TextureDetectRoughnessChannel roughness_channel;
RS::TextureDetectRoughnessChannel roughness_channel = RS::TEXTURE_DETECT_ROUGNHESS_R;
Texture *normal_detect_texture = nullptr;
#endif