From 7f5d74fb6f2c22c97ca7e2dc4c553c6f148521bc Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 4 Jan 2021 11:40:18 +0100 Subject: 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 --- src/quick/scenegraph/qsgrhisupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quick/scenegraph') 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: -- cgit v1.2.3