]> git.sesse.net Git - nageru/blobdiff - main.cpp
If EGL initialization fails, print a friendlier error message.
[nageru] / main.cpp
index e2d2cec4ee42c46f12527c9f29be3972302cb0ea..e156c5964722755872d218696686d7cb81a7bec9 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -28,6 +28,7 @@ int main(int argc, char *argv[])
                // We normally use EGL for zerocopy, but if we use VA against DRM
                // instead of against X11, we turn it off, and then don't need EGL.
                setenv("QT_XCB_GL_INTEGRATION", "xcb_egl", 0);
+               using_egl = true;
        }
        setlinebuf(stdout);
        av_register_all();