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:
parent
b141042952
commit
0e3fdebb11
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue