X-Git-Url: https://git.ralfj.de/gltest.git/blobdiff_plain/8dd990b1ed5cb3a4b78dfdf48b1f39d3f8bb0f0f..761d280065dfc01dc114f0975c58563be0562d50:/gltest.cpp?ds=sidebyside diff --git a/gltest.cpp b/gltest.cpp index 440e8f5..7f98eec 100644 --- a/gltest.cpp +++ b/gltest.cpp @@ -31,14 +31,14 @@ namespace po = boost::program_options; // my GL utility functions and the GL window class #include "glutil.h" #include "glwindow.h" -// include proper GL backend -#if defined(USE_GLX) +// include proper GL backend (windowing system) +#if defined(WIN_GLX) #include "glxbackend.h" static GLBackend *createGLBackend() { return new GLXBackend(); } -#elif defined(USE_EGL) +#elif defined(WIN_EGL) #include "eglbackend.h" static GLBackend *createGLBackend() { @@ -194,7 +194,7 @@ int main(int argc, char ** argv) ("help,h", "produce help message") ("swap-interval,i", po::value(), "set swap interval") ("overdraw,o", "overdraw previous image (instead of calling glClear)") - ("sleep,s", po::value()->default_value(0), "Number of milliseconds to sleap in each frame (in the drawing phase)") + ("sleep,s", po::value()->default_value(0), "Number of milliseconds to sleep in each frame (in the drawing phase)") ; po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm);