]> git.sesse.net Git - nageru/commitdiff
Fix another Coverity Scan issue that really should not happen in practice.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Dec 2018 18:23:19 +0000 (19:23 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Dec 2018 18:23:19 +0000 (19:23 +0100)
futatabi/main.cpp

index 7343df189a3d86aa41ee357c9841aa60d723dab2..5f262353eed6a55246286a557af0456ae2608528 100644 (file)
@@ -240,7 +240,10 @@ int main(int argc, char **argv)
        {
                QSurface *surface = create_surface();
                QOpenGLContext *context = create_context(surface);
-               make_current(context, surface);
+               if (!make_current(context, surface)) {
+                       printf("oops\n");
+                       exit(1);
+               }
                CHECK(movit::init_movit(MOVIT_SHADER_DIR, movit::MOVIT_DEBUG_OFF));
                delete_context(context);
                // TODO: Delete the surface, too.