mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 17:36:36 +00:00
Fix compilation on stable builds with constant settings
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user