mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 09:35:40 +00:00
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;
|
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
|
HostDisplay::RenderAPI OpenGLHostDisplay::GetRenderAPI() const
|
||||||
{
|
{
|
||||||
return m_gl_context->IsGLES() ? HostDisplay::RenderAPI::OpenGLES : HostDisplay::RenderAPI::OpenGL;
|
return m_gl_context->IsGLES() ? HostDisplay::RenderAPI::OpenGLES : HostDisplay::RenderAPI::OpenGL;
|
||||||
|
|
|
@ -25,8 +25,6 @@ public:
|
||||||
OpenGLHostDisplay(QtHostInterface* host_interface);
|
OpenGLHostDisplay(QtHostInterface* host_interface);
|
||||||
~OpenGLHostDisplay();
|
~OpenGLHostDisplay();
|
||||||
|
|
||||||
QtDisplayWidget* createWidget(QWidget* parent) override;
|
|
||||||
|
|
||||||
bool hasDeviceContext() const override;
|
bool hasDeviceContext() const override;
|
||||||
bool createDeviceContext(bool debug_device) override;
|
bool createDeviceContext(bool debug_device) override;
|
||||||
bool initializeDeviceContext(bool debug_device) override;
|
bool initializeDeviceContext(bool debug_device) override;
|
||||||
|
|
Loading…
Reference in a new issue