summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-05-17 04:13:20 -0300
committerGravatar ReinUsesLisp2019-05-17 04:13:20 -0300
commit5f877d9458d82bc054b471e5c37197e2720cdb89 (patch)
tree7dc812cad87b1d7e14b944770ede20ae1c4aac50
parentMerge pull request #2462 from lioncash/video-mm (diff)
downloadyuzu-5f877d9458d82bc054b471e5c37197e2720cdb89.tar.gz
yuzu-5f877d9458d82bc054b471e5c37197e2720cdb89.tar.xz
yuzu-5f877d9458d82bc054b471e5c37197e2720cdb89.zip
yuzu_cmd: Make OpenGL's context current
The SDL2 frontend never bound the OpenGL context, resulting on a white screen and no-ops all over the backend.
-rw-r--r--src/yuzu_cmd/yuzu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index a1d7879b1..d3734927b 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -222,6 +222,7 @@ int main(int argc, char** argv) {
222 222
223 system.TelemetrySession().AddField(Telemetry::FieldType::App, "Frontend", "SDL"); 223 system.TelemetrySession().AddField(Telemetry::FieldType::App, "Frontend", "SDL");
224 224
225 emu_window->MakeCurrent();
225 system.Renderer().Rasterizer().LoadDiskResources(); 226 system.Renderer().Rasterizer().LoadDiskResources();
226 227
227 while (emu_window->IsOpen()) { 228 while (emu_window->IsOpen()) {