Skip to content

Commit f414538

Browse files
committed
PenLayer: Disable depth test in stamp()
1 parent d4d2980 commit f414538

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/penlayer.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,7 @@ void PenLayer::stamp(IRenderedTarget *target)
266266
modelMatrix.rotate(angle, 0, 0, 1);
267267
modelMatrix.scale(scaleX / textureScale, aspectRatio * scaleY / textureScale);
268268
m_glF->glDisable(GL_SCISSOR_TEST);
269-
270-
// For some reason nothing is rendered without this
271-
// TODO: Find out why this is happening
272-
m_painter->beginFrame(m_fbo->width(), m_fbo->height());
273-
m_painter->stroke();
274-
m_painter->endFrame();
269+
m_glF->glDisable(GL_DEPTH_TEST);
275270

276271
// Create a FBO for the current texture
277272
m_glF->glBindFramebuffer(GL_FRAMEBUFFER, m_stampFbo);
@@ -314,6 +309,7 @@ void PenLayer::stamp(IRenderedTarget *target)
314309
m_glF->glBindFramebuffer(GL_FRAMEBUFFER, 0);
315310

316311
m_glF->glEnable(GL_SCISSOR_TEST);
312+
m_glF->glEnable(GL_DEPTH_TEST);
317313

318314
m_textureDirty = true;
319315
m_boundsDirty = true;

0 commit comments

Comments
 (0)