crownengine / crown

The flexible game engine.
https://www.crownengine.org
Other
2.15k stars 154 forks source link

runtime: linux: Vulkan backend crashes in BgfxAllocator::realloc() #103

Open dbartolini opened 1 year ago

dbartolini commented 1 year ago

Enable Vulkan on Linux:

1) device.cpp: use bgfx::RendererType::Vulkan; 2) shader_resource.cpp: in run_external_compiler, use --profile spirv as shaderc option; 3) rebuild project data to use new shaderc output.

Crash happens on BgfxAllocator::realloc().

Commenting-out init.allocator = ... in device.cpp fixes the problem and Vulkan renderer seems working as expected.