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:
parent
1b5e22be23
commit
fc3d0b029b
@ -7,12 +7,6 @@
|
|||||||
|
|
||||||
- (void)initDrawing
|
- (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
|
// Pick up and persist requested color space from surface format
|
||||||
const QSurfaceFormat surfaceFormat = m_platformWindow->format();
|
const QSurfaceFormat surfaceFormat = m_platformWindow->format();
|
||||||
if (QColorSpace colorSpace = surfaceFormat.colorSpace(); colorSpace.isValid()) {
|
if (QColorSpace colorSpace = surfaceFormat.colorSpace(); colorSpace.isValid()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user