[core] move CullFaceMode to gfx namespace

This commit is contained in:
Konstantin Käfer
2019-02-28 12:31:54 +01:00
parent 4372ce2b90
commit 67a9dc35bf
27 changed files with 126 additions and 110 deletions

View File

@@ -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