Commit 99c5d39e authored by Niklas Haas's avatar Niklas Haas

demos/sdl2: make params.debug dependent on -DNDEBUG

This allows us to make blazing fast release builds without editing the
parent 403bd7a5
......@@ -86,7 +86,9 @@ static void init_placebo() {
static void init_vulkan()
struct pl_vk_inst_params iparams = pl_vk_inst_default_params;
#ifndef NDEBUG
iparams.debug = true;
unsigned int num = 0;
if (!SDL_Vulkan_GetInstanceExtensions(window, &num, NULL)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment