diff --git a/lib/graphicsdev/GL.cpp b/lib/graphicsdev/GL.cpp index 96964a5..bc69e9c 100644 --- a/lib/graphicsdev/GL.cpp +++ b/lib/graphicsdev/GL.cpp @@ -1352,6 +1352,9 @@ struct GLCommandQueue : IGraphicsCommandQueue self->m_glCtx->m_sampleCount = flp2(std::min(uint32_t(maxSamples), std::max(uint32_t(1), self->m_glCtx->m_sampleCount)) - 1); + glEnable(GL_PRIMITIVE_RESTART); + glPrimitiveRestartIndex(0xffffffff); + dataFactory->SetupGammaResources(); } self->m_initcv.notify_one();