From e10055cb59478950a1b495100baea9cb5f59060d Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 22 Jan 2012 05:59:43 +0000 Subject: [PATCH] Don't try to create an OpenGL context until video is loaded Creating it during startup triggers a few valgrind errors in vbox's gl driver that may or may not matter. Originally committed to SVN as r6334. --- aegisub/src/video_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/video_display.cpp b/aegisub/src/video_display.cpp index b9484d35e..5ca577b62 100644 --- a/aegisub/src/video_display.cpp +++ b/aegisub/src/video_display.cpp @@ -190,7 +190,7 @@ void VideoDisplay::OnVideoOpen() { } void VideoDisplay::Render() try { - if (!InitContext() || !con->videoController->IsLoaded() || !videoOut) + if (!con->videoController->IsLoaded() || !videoOut || !InitContext() ) return; if (!viewport_height || !viewport_width)