From 6e42001281c7f389f369512f912f8ce6316830d0 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Thu, 3 Aug 2023 23:38:27 -0500 Subject: [PATCH] Set OpenGL blend mode for placefile transparency --- scwx-qt/source/scwx/qt/map/placefile_layer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scwx-qt/source/scwx/qt/map/placefile_layer.cpp b/scwx-qt/source/scwx/qt/map/placefile_layer.cpp index 2838e4ec..76b430cc 100644 --- a/scwx-qt/source/scwx/qt/map/placefile_layer.cpp +++ b/scwx-qt/source/scwx/qt/map/placefile_layer.cpp @@ -205,6 +205,9 @@ void PlacefileLayer::Render( { gl::OpenGLFunctions& gl = context()->gl(); + // Set OpenGL blend mode for transparency + gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + // Reset text ID per frame p->textId_ = 0;