]> git.tdb.fi Git - libs/gl.git/commitdiff
Clear the begin semaphore if Renderer::begin() is called without one
authorMikko Rasa <tdb@tdb.fi>
Wed, 1 Dec 2021 08:34:54 +0000 (10:34 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 1 Dec 2021 08:34:54 +0000 (10:34 +0200)
source/backends/vulkan/renderer_backend.cpp
source/backends/vulkan/renderer_backend.h

index d1788461185066ac67e04e315031bef4dad9e3ac..d0bd0c7b65244c1a20d0ad66e989854dd4ba4538 100644 (file)
@@ -4,6 +4,11 @@
 namespace Msp {
 namespace GL {
 
+void VulkanRenderer::begin()
+{
+       begin_semaphore = 0;
+}
+
 void VulkanRenderer::begin(Semaphore &sem)
 {
        static_cast<Renderer *>(this)->begin();
index b851ddd7a225165458cd1f128023a4181c0c4279..f1a0725eee6260ac3658ae282792aa5bc087dfa5 100644 (file)
@@ -14,7 +14,7 @@ protected:
        PipelineState pipeline_state;
        Semaphore *begin_semaphore;
 
-       void begin() { }
+       void begin();
        void begin(Semaphore &);
 
        void end();