From: Mikko Rasa Date: Wed, 1 Dec 2021 08:34:54 +0000 (+0200) Subject: Clear the begin semaphore if Renderer::begin() is called without one X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4d2d20e9274d32bd68dd8cdc1efef55b58ce96e1;p=libs%2Fgl.git Clear the begin semaphore if Renderer::begin() is called without one --- diff --git a/source/backends/vulkan/renderer_backend.cpp b/source/backends/vulkan/renderer_backend.cpp index d1788461..d0bd0c7b 100644 --- a/source/backends/vulkan/renderer_backend.cpp +++ b/source/backends/vulkan/renderer_backend.cpp @@ -4,6 +4,11 @@ namespace Msp { namespace GL { +void VulkanRenderer::begin() +{ + begin_semaphore = 0; +} + void VulkanRenderer::begin(Semaphore &sem) { static_cast(this)->begin(); diff --git a/source/backends/vulkan/renderer_backend.h b/source/backends/vulkan/renderer_backend.h index b851ddd7..f1a0725e 100644 --- a/source/backends/vulkan/renderer_backend.h +++ b/source/backends/vulkan/renderer_backend.h @@ -14,7 +14,7 @@ protected: PipelineState pipeline_state; Semaphore *begin_semaphore; - void begin() { } + void begin(); void begin(Semaphore &); void end();