diff options
author | Michael Brasser <michael.brasser@live.com> | 2020-02-14 18:51:46 -0600 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2020-02-17 20:45:55 -0600 |
commit | c39a8b19dde790c1aa937cce02ed3168671dd870 (patch) | |
tree | c7635f81c07a2c1dbf31d482a5987cb1e9633cec | |
parent | fa8cb43a7e90d1bf54c0dcc76ab41c537afc6e88 (diff) |
Fix inverted logic
A texture has an alpha channel if it is *not* opaque.
Change-Id: Ie7fdeb6e622dbb01e19b42877b27f0e0fe8959e2
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
-rw-r--r-- | src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture.cpp b/src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture.cpp index 46b2c6386c..e981921c69 100644 --- a/src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture.cpp +++ b/src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture.cpp @@ -151,7 +151,7 @@ Texture::~Texture() bool Texture::hasAlphaChannel() const { - return QSGCompressedTexture::formatIsOpaque(static_cast<Atlas*>(m_atlas)->format()); + return !QSGCompressedTexture::formatIsOpaque(static_cast<Atlas*>(m_atlas)->format()); } QSGTexture *Texture::removedFromAtlas() const |