From 245491724d3e6334e40901165b559c933be6c66c Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Wed, 13 Dec 2023 07:27:40 +0100 Subject: [PATCH] disable the alpha channel --- playground/parrots/SceneTexture.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/parrots/SceneTexture.h b/playground/parrots/SceneTexture.h index 7e27e8d3..b46925b8 100644 --- a/playground/parrots/SceneTexture.h +++ b/playground/parrots/SceneTexture.h @@ -32,8 +32,8 @@ class SceneTexture : public QSGTexture QRectF normalizedTextureSubRect() const override; private: - // nops to satisfy the QSGTexture API - bool hasAlphaChannel() const override { return true; } + // satisfy the QSGTexture API + bool hasAlphaChannel() const override { return false; } bool hasMipmaps() const override { return false; } void commitTextureOperations( QRhi*, QRhiResourceUpdateBatch* ) override {}