X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=gtest_sdl_main.cpp;fp=gtest_sdl_main.cpp;h=be8bdd4d372054f68c81cf28968dcb40a88f8c4e;hp=e3051ad3518a86c8c48055d00ed5b694644e32de;hb=b9da5758dedda56a1e2616647ebae129edb0c2db;hpb=dce0f4f2b6d57aa02f2074fdb3925c756d2a96ba diff --git a/gtest_sdl_main.cpp b/gtest_sdl_main.cpp index e3051ad..be8bdd4 100644 --- a/gtest_sdl_main.cpp +++ b/gtest_sdl_main.cpp @@ -1,14 +1,8 @@ #define GTEST_HAS_EXCEPTIONS 0 -#ifdef HAVE_SDL2 #include #include #include -#else -#include -#include -#include -#endif #ifdef HAVE_BENCHMARK #include #endif @@ -27,7 +21,6 @@ int main(int argc, char **argv) { SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 0); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); -#ifdef HAVE_SDL2 // You can uncomment this if you want to try a core context. // For Mesa, you can get the same effect by doing // @@ -48,10 +41,6 @@ int main(int argc, char **argv) { SDL_WINDOW_OPENGL); SDL_GLContext context = SDL_GL_CreateContext(window); assert(context != nullptr); -#else - SDL_SetVideoMode(32, 32, 0, SDL_OPENGL); - SDL_WM_SetCaption("OpenGL window for unit test", nullptr); -#endif int err; if (argc >= 2 && strcmp(argv[1], "--benchmark") == 0) {