X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.cpp;h=16a3ab8aec29c55f9f059364d9d40faf5bbb4537;hp=5c11fe1b229a1dcc594910401707b5b3375b5afb;hb=d68c91a7a2a3a4b3a312a50cbab5a7539d4cd7d5;hpb=c4f8f7c6c7e43fc9fd5358197ca866b4186f636c diff --git a/src/screen.cpp b/src/screen.cpp index 5c11fe1..16a3ab8 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -54,19 +54,19 @@ Screen::Screen(bool visible) ogl_LoadFunctions(); // Why is this so horribly broken? - if (ogl_IsVersionGEQ(3,0)) + if (ogl_IsVersionGEQ(3,2)) { - Error("We require OpenGL 3.1, but you have version %d.%d!",ogl_GetMajorVersion(), ogl_GetMinorVersion()); + Fatal("We require OpenGL 3.3, but you have version %d.%d!",ogl_GetMajorVersion(), ogl_GetMinorVersion()); } if (!SDL_GL_ExtensionSupported("GL_ARB_shading_language_420pack")) { - Error("Your system does not support the ARB_shading_language_420pack extension, which is required."); + Fatal("Your system does not support the ARB_shading_language_420pack extension, which is required."); } if (!SDL_GL_ExtensionSupported("GL_ARB_explicit_attrib_location")) { - Error("Your system does not support the ARB_explicit_attrib_location extension, which is required."); + Fatal("Your system does not support the ARB_explicit_attrib_location extension, which is required."); } m_frame_begin_time = SDL_GetPerformanceCounter();