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)
266
266
modelMatrix.rotate (angle, 0 , 0 , 1 );
267
267
modelMatrix.scale (scaleX / textureScale, aspectRatio * scaleY / textureScale);
268
268
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);
275
270
276
271
// Create a FBO for the current texture
277
272
m_glF->glBindFramebuffer (GL_FRAMEBUFFER, m_stampFbo);
@@ -314,6 +309,7 @@ void PenLayer::stamp(IRenderedTarget *target)
314
309
m_glF->glBindFramebuffer (GL_FRAMEBUFFER, 0 );
315
310
316
311
m_glF->glEnable (GL_SCISSOR_TEST);
312
+ m_glF->glEnable (GL_DEPTH_TEST);
317
313
318
314
m_textureDirty = true ;
319
315
m_boundsDirty = true ;
You can’t perform that action at this time.
0 commit comments