Skip to content

Commit fd8d695

Browse files
committed
Enable blending in PenLayer test
1 parent f4e4cbf commit fd8d695

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

test/penlayer/penlayer_test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ class PenLayerTest : public testing::Test
3030
m_surface.create();
3131
Q_ASSERT(m_surface.isValid());
3232
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);
3338
}
3439

3540
void TearDown() override

test/stamp.png

807 Bytes
Loading

test/stamp_hq.png

2.96 KB
Loading

0 commit comments

Comments
 (0)