Skip to content

Commit

Permalink
[Qt] Make null renderer create a GL context for vsync purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Sep 30, 2023
1 parent 5155682 commit d0dda4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panda_qt/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ MainWindow::MainWindow(QApplication* app, QWidget* parent) : QMainWindow(parent)
emuThread = std::thread([&]() {
const RendererType rendererType = emu->getConfig().rendererType;

if (rendererType == RendererType::OpenGL || rendererType == RendererType::Software) {
if (rendererType == RendererType::OpenGL || rendererType == RendererType::Software || rendererType == RendererType::Null) {
// Make GL context current for this thread, enable VSync
GL::Context* glContext = screen.getGLContext();
glContext->MakeCurrent();
Expand Down

0 comments on commit d0dda4c

Please sign in to comment.