From be869aefc6c959d31e6b5b3a2bcb1dd326241286 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Fri, 19 May 2023 18:52:47 -0500 Subject: [PATCH] rhi gl: Allow create_pipeline in gfx ctx This function impl does not change any GL drawing state, and neither should Vulkan, so the constraint that this function not be called while a graphics context is active is not necessary. --- src/rhi/gl3_core/gl3_core_rhi.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rhi/gl3_core/gl3_core_rhi.cpp b/src/rhi/gl3_core/gl3_core_rhi.cpp index eab28f852..7d6481f6d 100644 --- a/src/rhi/gl3_core/gl3_core_rhi.cpp +++ b/src/rhi/gl3_core/gl3_core_rhi.cpp @@ -886,7 +886,6 @@ void GlCoreRhi::destroy_renderbuffer(rhi::Handle handle) rhi::Handle GlCoreRhi::create_pipeline(const PipelineDesc& desc) { - SRB2_ASSERT(graphics_context_active_ == false); SRB2_ASSERT(platform_ != nullptr); // TODO assert compatibility of pipeline description with program using ProgramRequirements