Fix compilation on stable builds with constant settings

This commit is contained in:
baldurk
2020-04-24 20:14:48 +01:00
parent 267798b240
commit 320b1cddd4
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ CONFIG_SUPPORT_TYPE(rdcarray<rdcstr>);
#define RDOC_DEBUG_CONFIG(type, name, defaultValue, description) \
static ConfigVarRegistration<type> CONCAT(config, __LINE__)( \
STRING_LITERAL(STRINGIZE(name)), defaultValue, true, STRING_LITERAL(description)); \
static constexpr type name = defaultValue;
static const type name = defaultValue;
#else
+3 -2
View File
@@ -3424,9 +3424,10 @@ ShaderDebugTrace *VulkanReplay::DebugPixel(uint32_t eventId, uint32_t x, uint32_
}
}
if(Vulkan_Debug_ShaderDebugLogging && !usePrimitiveID)
if(Vulkan_Debug_ShaderDebugLogging)
{
RDCLOG("Geometry shader doesn't export primitive ID, can't use");
if(!usePrimitiveID)
RDCLOG("Geometry shader doesn't export primitive ID, can't use");
}
}
else