]> git.sesse.net Git - nageru/blobdiff - shared/context.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / shared / context.cpp
index 0b17bfa56893ec065b5f96efbe1a95a1a6a687c7..678457101ac39ffdd1056dcdc54f6dce874f4e67 100644 (file)
@@ -24,7 +24,7 @@ QSurface *create_surface()
        surface->create();
        if (!surface->isValid()) {
                fprintf(stderr, "ERROR: surface not valid!\n");
-               exit(1);
+               abort();
        }
        return surface;
 }
@@ -36,7 +36,7 @@ QSurface *create_surface(const QSurfaceFormat &format)
        surface->create();
        if (!surface->isValid()) {
                fprintf(stderr, "ERROR: surface not valid!\n");
-               exit(1);
+               abort();
        }
        return surface;
 }