mirror of https://github.com/odrling/Aegisub
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.
This commit is contained in:
parent
6c879c12f1
commit
e10055cb59
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue