Disable depth in heatmap offscreen rendering.
It triggers Metal depth stencil validation error since depth test is enabled with no depth attachment.
This commit is contained in:
committed by
Aleksandar Stojiljković
parent
8c0f90ce84
commit
42469cdb66
@@ -130,21 +130,19 @@ void RenderHeatmapLayer::render(PaintParameters& parameters) {
|
||||
|
||||
checkRenderability(parameters, programInstance.activeBindingCount(allAttributeBindings));
|
||||
|
||||
programInstance.draw(
|
||||
parameters.context,
|
||||
*renderPass,
|
||||
gfx::Triangles(),
|
||||
parameters.depthModeForSublayer(0, gfx::DepthMaskType::ReadOnly),
|
||||
gfx::StencilMode::disabled(),
|
||||
gfx::ColorMode::additive(),
|
||||
gfx::CullFaceMode::disabled(),
|
||||
*bucket.indexBuffer,
|
||||
bucket.segments,
|
||||
allUniformValues,
|
||||
allAttributeBindings,
|
||||
HeatmapProgram::TextureBindings{},
|
||||
getID()
|
||||
);
|
||||
programInstance.draw(parameters.context,
|
||||
*renderPass,
|
||||
gfx::Triangles(),
|
||||
gfx::DepthMode::disabled(),
|
||||
gfx::StencilMode::disabled(),
|
||||
gfx::ColorMode::additive(),
|
||||
gfx::CullFaceMode::disabled(),
|
||||
*bucket.indexBuffer,
|
||||
bucket.segments,
|
||||
allUniformValues,
|
||||
allAttributeBindings,
|
||||
HeatmapProgram::TextureBindings{},
|
||||
getID());
|
||||
}
|
||||
|
||||
} else if (parameters.pass == RenderPass::Translucent) {
|
||||
|
||||
Reference in New Issue
Block a user