diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-08-23 01:05:26 +0300 |
---|---|---|
committer | Ander Conselvan de Oliveira <ander.deoliveira@mapbox.com> | 2018-09-13 08:42:36 +0300 |
commit | 05a7b78aa866720245022805410aae92bb887fa6 (patch) | |
tree | 1979e724d148cdb9c3a9fe2aac80f718a41c65b5 /src/mbgl/gl/program.hpp | |
parent | e4e43bb54fbc519464083300aef295abc4ee095b (diff) | |
download | qtlocation-mapboxgl-05a7b78aa866720245022805410aae92bb887fa6.tar.gz |
[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.
Diffstat (limited to 'src/mbgl/gl/program.hpp')
-rw-r--r-- | src/mbgl/gl/program.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |