Metal layer depth range support (#2013)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alex Cristici <alex.cristici@gmail.com>
This commit is contained in:
@@ -490,7 +490,9 @@ void Context::setDirtyState() {
|
||||
stencilMask.setDirty();
|
||||
stencilTest.setDirty();
|
||||
stencilOp.setDirty();
|
||||
#if MLN_RENDER_BACKEND_OPENGL
|
||||
depthRange.setDirty();
|
||||
#endif
|
||||
depthMask.setDirty();
|
||||
depthTest.setDirty();
|
||||
depthFunc.setDirty();
|
||||
@@ -615,12 +617,16 @@ void Context::setDepthMode(const gfx::DepthMode& depth) {
|
||||
// https://github.com/mapbox/mapbox-gl-native/issues/9164
|
||||
depthFunc = depth.func;
|
||||
depthMask = depth.mask;
|
||||
#if MLN_RENDER_BACKEND_OPENGL
|
||||
depthRange = depth.range;
|
||||
#endif
|
||||
} else {
|
||||
depthTest = true;
|
||||
depthFunc = depth.func;
|
||||
depthMask = depth.mask;
|
||||
#if MLN_RENDER_BACKEND_OPENGL
|
||||
depthRange = depth.range;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user