File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments