diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-02-28 12:31:54 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-03-01 09:33:37 +0100 |
commit | 67a9dc35bf0c0113d429161be2c125e75981fb5d (patch) | |
tree | 0a11064acec035b62a9d51f8661341719f276ef8 /src/mbgl/gl/context.cpp | |
parent | 4372ce2b90a26d114fafa555227a5200c421878f (diff) | |
download | qtlocation-mapboxgl-67a9dc35bf0c0113d429161be2c125e75981fb5d.tar.gz |
[core] move CullFaceMode to gfx namespace
Diffstat (limited to 'src/mbgl/gl/context.cpp')
-rw-r--r-- | src/mbgl/gl/context.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp index abe082f14f..bcbb3ab66c 100644 --- a/src/mbgl/gl/context.cpp +++ b/src/mbgl/gl/context.cpp @@ -618,7 +618,7 @@ void Context::setDirtyState() { clearStencil.setDirty(); cullFace.setDirty(); cullFaceSide.setDirty(); - frontFace.setDirty(); + cullFaceWinding.setDirty(); program.setDirty(); lineWidth.setDirty(); activeTextureUnit.setDirty(); @@ -665,14 +665,14 @@ void Context::clear(optional<mbgl::Color> color, MBGL_CHECK_ERROR(glClear(mask)); } -void Context::setCullFaceMode(const CullFaceMode& mode) { - cullFace = mode.cullFace; +void Context::setCullFaceMode(const gfx::CullFaceMode& mode) { + cullFace = mode.enabled; // These shouldn't need to be updated when face culling is disabled, but we // might end up having the same isssues with Adreno 2xx GPUs as noted in // Context::setDepthMode. cullFaceSide = mode.side; - frontFace = mode.frontFace; + cullFaceWinding = mode.winding; } #if not MBGL_USE_GLES2 |