diff --git a/CMakeLists.txt b/CMakeLists.txt index c675f56..124cb5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.14) -project(scratchcpp-render VERSION 0.8.0 LANGUAGES CXX) +project(scratchcpp-render VERSION 0.8.1 LANGUAGES CXX) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOUIC ON) diff --git a/libscratchcpp b/libscratchcpp index d9e0e11..70f2c70 160000 --- a/libscratchcpp +++ b/libscratchcpp @@ -1 +1 @@ -Subproject commit d9e0e1124174a23d9f2783e756027da2f57d67b5 +Subproject commit 70f2c7060fb116c8000f712fba1fc661343d7d1d diff --git a/src/penlayer.cpp b/src/penlayer.cpp index 0c95759..7333517 100644 --- a/src/penlayer.cpp +++ b/src/penlayer.cpp @@ -273,6 +273,8 @@ void PenLayer::stamp(IRenderedTarget *target) modelMatrix.scale(scaleX / textureScale, aspectRatio * scaleY / textureScale); m_glF->glDisable(GL_SCISSOR_TEST); m_glF->glDisable(GL_DEPTH_TEST); + m_glF->glEnable(GL_BLEND); + m_glF->glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // Create a FBO for the current texture m_glF->glBindFramebuffer(GL_FRAMEBUFFER, m_stampFbo); diff --git a/test/penlayer/penlayer_test.cpp b/test/penlayer/penlayer_test.cpp index 007ef81..6400b29 100644 --- a/test/penlayer/penlayer_test.cpp +++ b/test/penlayer/penlayer_test.cpp @@ -30,11 +30,6 @@ class PenLayerTest : public testing::Test m_surface.create(); Q_ASSERT(m_surface.isValid()); m_context.makeCurrent(&m_surface); - - QOpenGLFunctions glF(&m_context); - glF.initializeOpenGLFunctions(); - glF.glEnable(GL_BLEND); - glF.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } void TearDown() override