Remove leftover preferred Metal device logic

This commit is contained in:
Cameron Gutman 2024-03-26 01:16:57 -05:00
parent a45695a22a
commit 97bd515b11

View file

@ -362,17 +362,6 @@ public:
{ @autoreleasepool {
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
if (!updateColorSpaceForFrame(frame)) {
// Trigger the main thread to recreate the decoder