mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-22 16:08:45 +00:00
Fix VAAPIRenderer build error with neither HAVE_EGL nor HAVE_DRM defined
This commit is contained in:
@@ -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
|
||||
bool
|
||||
VAAPIRenderer::canExportSurfaceHandle(int layerTypeFlag) {
|
||||
@@ -490,6 +492,8 @@ VAAPIRenderer::canExportSurfaceHandle(int layerTypeFlag) {
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_EGL
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user