mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 06:30:55 +00:00
Remove leftover preferred Metal device logic
This commit is contained in:
@@ -362,17 +362,6 @@ public:
|
|||||||
{ @autoreleasepool {
|
{ @autoreleasepool {
|
||||||
CVPixelBufferRef pixBuf = reinterpret_cast<CVPixelBufferRef>(frame->data[3]);
|
CVPixelBufferRef pixBuf = reinterpret_cast<CVPixelBufferRef>(frame->data[3]);
|
||||||
|
|
||||||
if (m_MetalLayer.preferredDevice != nullptr && m_MetalLayer.preferredDevice != m_MetalLayer.device) {
|
|
||||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
|
||||||
"Resetting renderer after preferred device changed");
|
|
||||||
|
|
||||||
// Trigger the main thread to recreate the decoder
|
|
||||||
SDL_Event event;
|
|
||||||
event.type = SDL_RENDER_DEVICE_RESET;
|
|
||||||
SDL_PushEvent(&event);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle changes to the frame's colorspace from last time we rendered
|
// Handle changes to the frame's colorspace from last time we rendered
|
||||||
if (!updateColorSpaceForFrame(frame)) {
|
if (!updateColorSpaceForFrame(frame)) {
|
||||||
// Trigger the main thread to recreate the decoder
|
// Trigger the main thread to recreate the decoder
|
||||||
|
|||||||
Reference in New Issue
Block a user