From 44b133d1372fb410fe0c8badcd4028965d95fbb8 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 21 Dec 2018 19:23:19 +0100 Subject: [PATCH] Fix another Coverity Scan issue that really should not happen in practice. --- futatabi/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/futatabi/main.cpp b/futatabi/main.cpp index 7343df1..5f26235 100644 --- a/futatabi/main.cpp +++ b/futatabi/main.cpp @@ -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. -- 2.39.2