aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgrhisupport.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2021-01-04 11:40:18 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2021-01-05 10:22:19 +0100
commit7f5d74fb6f2c22c97ca7e2dc4c553c6f148521bc (patch)
tree91b5f49abf9ad978de51cebce45a0e7606122d5e /src/quick/scenegraph/qsgrhisupport.cpp
parent14d80c3ec4b55e3861156b37da239a87b4f328bf (diff)
Use the new, dedicated D3D surface type for QQuickWindow
This way any potential logic in the platform plugin that branches based on the surface type can now distinguish between OpenGL and D3D based windows. Fixes: QTBUG-89715 Change-Id: I01e9f8a525280982a9d4a18defb970e8a2fcc362 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgrhisupport.cpp')
-rw-r--r--src/quick/scenegraph/qsgrhisupport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgrhisupport.cpp b/src/quick/scenegraph/qsgrhisupport.cpp
index 5b64642ce3..2761b54bde 100644
--- a/src/quick/scenegraph/qsgrhisupport.cpp
+++ b/src/quick/scenegraph/qsgrhisupport.cpp
@@ -345,7 +345,7 @@ QSurface::SurfaceType QSGRhiSupport::windowSurfaceType() const
case QRhi::OpenGLES2:
return QSurface::OpenGLSurface;
case QRhi::D3D11:
- return QSurface::OpenGLSurface; // yup, OpenGLSurface
+ return QSurface::Direct3DSurface;
case QRhi::Metal:
return QSurface::MetalSurface;
default: