macOS: Remove QT_MAC_WANTS_LAYER remnants from surface-backed views

We only support layer-backed views nowadays.

Change-Id: I900605a50ce513c4de08081200f2946ee08f15c8
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Tor Arne Vestbø 2025-04-02 01:06:50 +02:00
parent 1b5e22be23
commit fc3d0b029b

View File

@ -7,12 +7,6 @@
- (void)initDrawing
{
if (qt_mac_resolveOption(-1, m_platformWindow->window(),
"_q_mac_wantsLayer", "QT_MAC_WANTS_LAYER") != -1) {
qCWarning(lcQpaDrawing) << "Layer-backing is always enabled."
<< " QT_MAC_WANTS_LAYER/_q_mac_wantsLayer has no effect.";
}
// Pick up and persist requested color space from surface format
const QSurfaceFormat surfaceFormat = m_platformWindow->format();
if (QColorSpace colorSpace = surfaceFormat.colorSpace(); colorSpace.isValid()) {