mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 14:31:17 +12:00
Remove PUBLIC_RELEASE flag and tie asserts to debug config (#287)
Removes the -DPUBLIC_RELEASE flag. Cemu's debug asserts are now only enabled if the build configuration is Debug. Similarly, on Windows the console is only shown for Debug builds.
This commit is contained in:
parent
b720d17a97
commit
3bceb39966
68 changed files with 154 additions and 186 deletions
|
@ -54,7 +54,7 @@ const std::vector<const char*> kRequiredDeviceExtensions =
|
|||
|
||||
VKAPI_ATTR VkBool32 VKAPI_CALL DebugUtilsCallback(VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageTypes, const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData, void* pUserData)
|
||||
{
|
||||
#ifndef PUBLIC_RELEASE
|
||||
#ifdef CEMU_DEBUG_ASSERT
|
||||
|
||||
if (strstr(pCallbackData->pMessage, "consumes input location"))
|
||||
return VK_FALSE; // false means we dont care
|
||||
|
@ -636,7 +636,7 @@ VulkanRenderer::~VulkanRenderer()
|
|||
|
||||
VulkanRenderer* VulkanRenderer::GetInstance()
|
||||
{
|
||||
#ifndef PUBLIC_RELEASE
|
||||
#ifdef CEMU_DEBUG_ASSERT
|
||||
cemu_assert_debug(g_renderer && dynamic_cast<VulkanRenderer*>(g_renderer.get()));
|
||||
// Use #if here because dynamic_casts dont get optimized away even if the result is not stored as with cemu_assert_debug
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue