From: Ralf Jung Date: Sun, 31 Mar 2013 12:44:45 +0000 (+0200) Subject: Ensure program is terminated when swap interval cannot be changed X-Git-Url: https://git.ralfj.de/gltest.git/commitdiff_plain/aa8d6f63cc3b8ce1d8c7473ab59bbc2b2f92010c?ds=sidebyside Ensure program is terminated when swap interval cannot be changed --- diff --git a/glxbackend.cpp b/glxbackend.cpp index ff126eb..7841bbe 100644 --- a/glxbackend.cpp +++ b/glxbackend.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -80,6 +81,8 @@ void GLXBackend::setSwapInterval(int i) const funSwapIntervalExt(display, window, i); else if (funSwapIntervalMesa) funSwapIntervalMesa(i); - else - assert(false && "At least one of glXSwapIntervalMESA, glXSwapIntervalEXT must be provided by the system"); + else { + fprintf(stderr, "At least one of glXSwapIntervalMESA, glXSwapIntervalEXT must be provided by the system\n"); + abort(); + } }