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.
This commit is contained in:
Eidolon 2023-05-19 18:52:47 -05:00
parent aa48237928
commit be869aefc6

View file

@ -886,7 +886,6 @@ void GlCoreRhi::destroy_renderbuffer(rhi::Handle<rhi::Renderbuffer> handle)
rhi::Handle<rhi::Pipeline> 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