mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-04 00:36:36 +00:00
Disable the EGL render thread on Wayland
This commit is contained in:
parent
8159e07427
commit
dcc567ebda
@ -747,6 +747,13 @@ bool EGLRenderer::specialize() {
|
|||||||
return err == GL_NO_ERROR;
|
return err == GL_NO_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool EGLRenderer::isRenderThreadSupported()
|
||||||
|
{
|
||||||
|
// libdecor may try to draw CSD on our window surface which will race with
|
||||||
|
// our rendering code here, so we must not use the render thread on wayland.
|
||||||
|
return strcmp(SDL_GetCurrentVideoDriver(), "wayland") != 0;
|
||||||
|
}
|
||||||
|
|
||||||
void EGLRenderer::renderFrame(AVFrame* frame)
|
void EGLRenderer::renderFrame(AVFrame* frame)
|
||||||
{
|
{
|
||||||
EGLImage imgs[EGL_MAX_PLANES];
|
EGLImage imgs[EGL_MAX_PLANES];
|
||||||
|
@ -16,6 +16,7 @@ public:
|
|||||||
virtual void notifyOverlayUpdated(Overlay::OverlayType) override;
|
virtual void notifyOverlayUpdated(Overlay::OverlayType) override;
|
||||||
virtual bool isPixelFormatSupported(int videoFormat, enum AVPixelFormat pixelFormat) override;
|
virtual bool isPixelFormatSupported(int videoFormat, enum AVPixelFormat pixelFormat) override;
|
||||||
virtual AVPixelFormat getPreferredPixelFormat(int videoFormat) override;
|
virtual AVPixelFormat getPreferredPixelFormat(int videoFormat) override;
|
||||||
|
virtual bool isRenderThreadSupported() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user