[core] Add face culling mode parameter to Program::draw

Add a parameter to Program::draw to control whether face culling should
be enabled. This will be used in a follow up commit to enable face
culling for fill extrusion layers.
This commit is contained in:
Bruno de Oliveira Abinader
2018-08-23 01:05:26 +03:00
committed by Ander Conselvan de Oliveira
parent e4e43bb54f
commit 05a7b78aa8
25 changed files with 165 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ void RenderCustomLayer::render(PaintParameters& paintParameters, RenderSource*)
glContext.setDepthMode(paintParameters.depthModeForSublayer(0, gl::DepthMode::ReadOnly));
glContext.setStencilMode(gl::StencilMode::disabled());
glContext.setColorMode(paintParameters.colorModeForRenderPass());
glContext.setCullFaceMode(gl::CullFaceMode::disabled());
CustomLayerRenderParameters parameters;