From c87a453621aef2c808b674dcae65222149d689ce Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Thu, 23 Aug 2018 01:05:26 +0300 Subject: [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. --- src/mbgl/gl/program.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mbgl/gl/program.hpp') diff --git a/src/mbgl/gl/program.hpp b/src/mbgl/gl/program.hpp index f33501cd11..3ef7955949 100644 --- a/src/mbgl/gl/program.hpp +++ b/src/mbgl/gl/program.hpp @@ -118,6 +118,7 @@ public: DepthMode depthMode, StencilMode stencilMode, ColorMode colorMode, + CullFaceMode cullFaceMode, const UniformValues& uniformValues, VertexArray& vertexArray, const AttributeBindings& attributeBindings, @@ -130,6 +131,7 @@ public: context.setDepthMode(depthMode); context.setStencilMode(stencilMode); context.setColorMode(colorMode); + context.setCullFaceMode(cullFaceMode); context.program = program; -- cgit v1.2.1