Qt: Don't set native window to GL surface

Might be related to the GLX crashes some people are experiencing...
This commit is contained in:
Connor McLaughlin 2020-06-16 01:06:56 +10:00
parent b141042952
commit 0e3fdebb11
2 changed files with 0 additions and 13 deletions

View file

@ -60,17 +60,6 @@ OpenGLHostDisplay::OpenGLHostDisplay(QtHostInterface* host_interface) : QtHostDi
OpenGLHostDisplay::~OpenGLHostDisplay() = default;
QtDisplayWidget* OpenGLHostDisplay::createWidget(QWidget* parent)
{
QtDisplayWidget* widget = QtHostDisplay::createWidget(parent);
QWindow* native_window = widget->windowHandle();
Assert(native_window);
native_window->setSurfaceType(QWindow::OpenGLSurface);
return widget;
}
HostDisplay::RenderAPI OpenGLHostDisplay::GetRenderAPI() const
{
return m_gl_context->IsGLES() ? HostDisplay::RenderAPI::OpenGLES : HostDisplay::RenderAPI::OpenGL;

View file

@ -25,8 +25,6 @@ public:
OpenGLHostDisplay(QtHostInterface* host_interface);
~OpenGLHostDisplay();
QtDisplayWidget* createWidget(QWidget* parent) override;
bool hasDeviceContext() const override;
bool createDeviceContext(bool debug_device) override;
bool initializeDeviceContext(bool debug_device) override;