mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 07:15:27 +00:00
Fix DrmRenderer build
This commit is contained in:
parent
ecfcedad58
commit
dff02eab7d
@ -185,7 +185,7 @@ void DrmRenderer::prepareToRender()
|
||||
// operation that the KMSDRM backend keeps pending until the next
|
||||
// time we swap buffers. We have to do this before we enumerate
|
||||
// CRTC modes below.
|
||||
SDL_Renderer* renderer = SDL_CreateRenderer(params->window, -1, SDL_RENDERER_SOFTWARE);
|
||||
SDL_Renderer* renderer = SDL_CreateRenderer(m_Window, -1, SDL_RENDERER_SOFTWARE);
|
||||
if (renderer != nullptr) {
|
||||
// SDL_CreateRenderer() can end up having to recreate our window (SDL_RecreateWindow())
|
||||
// to ensure it's compatible with the renderer's OpenGL context. If that happens, we
|
||||
@ -238,6 +238,7 @@ bool DrmRenderer::initialize(PDECODER_PARAMETERS params)
|
||||
{
|
||||
int i;
|
||||
|
||||
m_Window = params->window;
|
||||
m_Main10Hdr = (params->videoFormat & VIDEO_FORMAT_MASK_10BIT);
|
||||
m_SwFrameMapper.setVideoFormat(params->videoFormat);
|
||||
|
||||
|
@ -78,6 +78,7 @@ private:
|
||||
bool addFbForFrame(AVFrame* frame, uint32_t* newFbId, bool testMode);
|
||||
|
||||
IFFmpegRenderer* m_BackendRenderer;
|
||||
SDL_Window* m_Window;
|
||||
bool m_DrmPrimeBackend;
|
||||
bool m_HwAccelBackend;
|
||||
AVBufferRef* m_HwContext;
|
||||
|
Loading…
x
Reference in New Issue
Block a user