File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,8 @@ void PenLayer::stamp(IRenderedTarget *target)
273
273
modelMatrix.scale (scaleX / textureScale, aspectRatio * scaleY / textureScale);
274
274
m_glF->glDisable (GL_SCISSOR_TEST);
275
275
m_glF->glDisable (GL_DEPTH_TEST);
276
+ m_glF->glEnable (GL_BLEND);
277
+ m_glF->glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
276
278
277
279
// Create a FBO for the current texture
278
280
m_glF->glBindFramebuffer (GL_FRAMEBUFFER, m_stampFbo);
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ class PenLayerTest : public testing::Test
30
30
m_surface.create ();
31
31
Q_ASSERT (m_surface.isValid ());
32
32
m_context.makeCurrent (&m_surface);
33
-
34
- QOpenGLFunctions glF (&m_context);
35
- glF.initializeOpenGLFunctions ();
36
- glF.glEnable (GL_BLEND);
37
- glF.glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
38
33
}
39
34
40
35
void TearDown () override
You can’t perform that action at this time.
0 commit comments