macOS: Skip uninitialized buffers in IOSurface backingstore
Task-number: QTBUG-80972 Change-Id: Ifb8eb84d6b802556ccd52ac129a91e142e265a81 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
7c0341daee
commit
77f1d0bfa5
@ -617,8 +617,10 @@ QImage QCALayerBackingStore::toImage() const
|
|||||||
void QCALayerBackingStore::backingPropertiesChanged()
|
void QCALayerBackingStore::backingPropertiesChanged()
|
||||||
{
|
{
|
||||||
qCDebug(lcQpaBackingStore) << "Updating color space of existing buffers";
|
qCDebug(lcQpaBackingStore) << "Updating color space of existing buffers";
|
||||||
for (auto &buffer : m_buffers)
|
for (auto &buffer : m_buffers) {
|
||||||
buffer->setColorSpace(colorSpace());
|
if (buffer)
|
||||||
|
buffer->setColorSpace(colorSpace());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QPlatformGraphicsBuffer *QCALayerBackingStore::graphicsBuffer() const
|
QPlatformGraphicsBuffer *QCALayerBackingStore::graphicsBuffer() const
|
||||||
|
Loading…
Reference in New Issue
Block a user