summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsnativeinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsnativeinterface.cpp')
-rw-r--r--src/plugins/platforms/windows/qwindowsnativeinterface.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/plugins/platforms/windows/qwindowsnativeinterface.cpp b/src/plugins/platforms/windows/qwindowsnativeinterface.cpp
index a36da4c780..0cd361516e 100644
--- a/src/plugins/platforms/windows/qwindowsnativeinterface.cpp
+++ b/src/plugins/platforms/windows/qwindowsnativeinterface.cpp
@@ -60,9 +60,6 @@ QT_BEGIN_NAMESPACE
enum ResourceType {
RenderingContextType,
- EglContextType,
- EglDisplayType,
- EglConfigType,
HandleType,
GlHandleType,
GetDCType,
@@ -74,9 +71,6 @@ static int resourceType(const QByteArray &key)
{
static const char *names[] = { // match ResourceType
"renderingcontext",
- "eglcontext",
- "egldisplay",
- "eglconfig",
"handle",
"glhandle",
"getdc",
@@ -207,19 +201,6 @@ void *QWindowsNativeInterface::nativeResourceForContext(const QByteArray &resour
return nullptr;
}
- auto *glcontext = static_cast<QWindowsOpenGLContext *>(context->handle());
- switch (resourceType(resource)) {
- case RenderingContextType: // Fall through.
- case EglContextType:
- return glcontext->nativeContext();
- case EglDisplayType:
- return glcontext->nativeDisplay();
- case EglConfigType:
- return glcontext->nativeConfig();
- default:
- break;
- }
-
qWarning("%s: Invalid key '%s' requested.", __FUNCTION__, resource.constData());
return nullptr;
}