mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-02 15:55:39 +00:00
Fix VAAPIRenderer build error with neither HAVE_EGL nor HAVE_DRM defined
This commit is contained in:
parent
8c93b2d54c
commit
fee6f75223
@ -415,6 +415,8 @@ VAAPIRenderer::renderFrame(AVFrame* frame)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HAVE_EGL) || defined(HAVE_DRM)
|
||||||
|
|
||||||
// Ensure that vaExportSurfaceHandle() is supported by the VA-API driver
|
// Ensure that vaExportSurfaceHandle() is supported by the VA-API driver
|
||||||
bool
|
bool
|
||||||
VAAPIRenderer::canExportSurfaceHandle(int layerTypeFlag) {
|
VAAPIRenderer::canExportSurfaceHandle(int layerTypeFlag) {
|
||||||
@ -490,6 +492,8 @@ VAAPIRenderer::canExportSurfaceHandle(int layerTypeFlag) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_EGL
|
#ifdef HAVE_EGL
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
@ -58,7 +58,10 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
VADisplay openDisplay(SDL_Window* window);
|
VADisplay openDisplay(SDL_Window* window);
|
||||||
|
|
||||||
|
#if defined(HAVE_EGL) || defined(HAVE_DRM)
|
||||||
bool canExportSurfaceHandle(int layerTypeFlag);
|
bool canExportSurfaceHandle(int layerTypeFlag);
|
||||||
|
#endif
|
||||||
|
|
||||||
int m_WindowSystem;
|
int m_WindowSystem;
|
||||||
AVBufferRef* m_HwContext;
|
AVBufferRef* m_HwContext;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user