Ensure GL_PRIMITIVE_RESTART is enabled

This commit is contained in:
Jack Andersen 2018-05-05 10:55:37 -10:00
parent 088cddfea7
commit 9031ace975
1 changed files with 3 additions and 0 deletions

View File

@ -1352,6 +1352,9 @@ struct GLCommandQueue : IGraphicsCommandQueue
self->m_glCtx->m_sampleCount = self->m_glCtx->m_sampleCount =
flp2(std::min(uint32_t(maxSamples), std::max(uint32_t(1), self->m_glCtx->m_sampleCount)) - 1); 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(); dataFactory->SetupGammaResources();
} }
self->m_initcv.notify_one(); self->m_initcv.notify_one();