Qt: Fix ScreenWidgetGL when OpenGL is disabled
Some checks failed
iOS Simulator Build / build (push) Has been cancelled
Android Build / x64 (release) (push) Has been cancelled
Android Build / arm64 (release) (push) Has been cancelled
HTTP Server Build / build (push) Has been cancelled
Hydra Core Build / Windows (push) Has been cancelled
Hydra Core Build / MacOS (push) Has been cancelled
Hydra Core Build / Linux (push) Has been cancelled
Hydra Core Build / Android-x64 (push) Has been cancelled
Hydra Core Build / ARM-Libretro (push) Has been cancelled
Linux AppImage Build / build (push) Has been cancelled
Linux Build / build (push) Has been cancelled
MacOS Build / MacOS-arm64 (push) Has been cancelled
MacOS Build / MacOS-x86_64 (push) Has been cancelled
Qt Build / Windows (push) Has been cancelled
Qt Build / MacOS-arm64 (push) Has been cancelled
Qt Build / MacOS-x86_64 (push) Has been cancelled
Qt Build / Linux (push) Has been cancelled
Hardware Test Build / build (push) Has been cancelled
Windows Build / build (push) Has been cancelled
MacOS Build / MacOS-Universal (push) Has been cancelled
Qt Build / MacOS-Universal (push) Has been cancelled

This commit is contained in:
wheremyfoodat 2025-07-27 08:12:11 +03:00 committed by GitHub
commit 948ae5ef4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,8 +57,8 @@ ScreenWidgetGL::ScreenWidgetGL(API api, ResizeCallback resizeCallback, QWidget*
Helpers::panic("OpenGL renderer not supported. Make sure you've compiled with OpenGL support and that you're on a compatible platform");
}
GL::Context* ScreenWidgetGL::getGLContext() { nullptr; }
GL::Context* ScreenWidgetGL::getGLContext() { return nullptr; }
bool ScreenWidgetGL::createContext() { return false; }
void ScreenWidgetGL::resizeDisplay() {}
void ScreenWidgetGL::resizeSurface(u32 width, u32 height) {}
#endif
#endif