Ticket #1419: GameSetup.cpp.patch
File GameSetup.cpp.patch, 3.6 KB (added by , 11 years ago) |
---|
-
source/ps/GameSetup/GameSetup.cpp
26 26 #include "lib/file/common/file_stats.h" 27 27 #include "lib/res/h_mgr.h" 28 28 #include "lib/res/graphics/cursor.h" 29 29 30 #include "lib/sysdep/cursor.h" 30 31 #include "lib/sysdep/cpu.h" 31 32 #include "lib/sysdep/gfx.h" 32 33 #include "lib/sysdep/os_cpu.h" 33 #include "lib/ tex/tex.h"34 #include "lib/sysdep/sysdep.h" 34 35 #if OS_WIN 35 36 #include "lib/sysdep/os/win/wversion.h" 36 37 #endif 37 38 39 #include "lib/tex/tex.h" 40 38 41 #include "graphics/CinemaTrack.h" 39 42 #include "graphics/GameView.h" 40 43 #include "graphics/LightEnv.h" … … 984 987 ISoundManager::SetEnabled(false); 985 988 986 989 g_GUI = new CGUIManager(g_ScriptingHost.GetScriptInterface()); 990 987 991 992 wchar_t buf[500]; 993 wchar_t caption[128]; 988 994 // (must come after SetVideoMode, since it calls ogl_Init) 989 995 if (ogl_HaveExtensions(0, "GL_ARB_vertex_program", "GL_ARB_fragment_program", NULL) != 0 // ARB 990 996 && ogl_HaveExtensions(0, "GL_ARB_vertex_shader", "GL_ARB_fragment_shader", NULL) != 0) // GLSL 991 997 { 992 DEBUG_DISPLAY_ERROR( 993 L"Your graphics card doesn't appear to be fully compatible with OpenGL shaders." 994 L" In the future, the game will not support pre-shader graphics cards." 995 L" You are advised to try installing newer drivers and/or upgrade your graphics card." 998 999 swprintf_s(buf, ARRAY_SIZE(buf), 1000 L"Your graphics card doesn't appear to be fully compatible with OpenGL shaders.\n" 1001 L" In the future, the game will not support pre-shader graphics cards.\n\n" 1002 L" You are advised to try installing newer drivers and/or upgrade your graphics card.\n\n" 996 1003 L" For more information, please see http://www.wildfiregames.com/forum/index.php?showtopic=16734" 997 ); 1004 ); 1005 swprintf_s(caption,ARRAY_SIZE(caption),L"No OpenGL shaders!"); 1006 sys_display_msg(caption,buf); 998 1007 // TODO: actually quit once fixed function support is dropped 999 1008 } 1000 1009 … … 1006 1015 NULL); 1007 1016 if(missing) 1008 1017 { 1009 wchar_t buf[500];1018 1010 1019 swprintf_s(buf, ARRAY_SIZE(buf), 1011 L"The %hs extension doesn't appear to be available on your computer. "1012 L" The game may still work, though - you are welcome to try at your own risk. "1013 L" If not or it doesn't look right, upgrade your graphics card. ",1020 L"The %hs extension doesn't appear to be available on your computer.\n" 1021 L" The game may still work, though - you are welcome to try at your own risk.\n\n" 1022 L" If not or it doesn't look right, upgrade your graphics card.\n", 1014 1023 missing 1015 1024 ); 1016 DEBUG_DISPLAY_ERROR(buf); 1025 swprintf_s(caption,ARRAY_SIZE(caption),L"Missing %hs extension!",missing); 1026 sys_display_msg(caption,buf); 1017 1027 // TODO: i18n 1018 1028 } 1019 1029 1020 1030 if (!ogl_HaveExtension("GL_ARB_texture_env_crossbar")) 1021 1031 { 1022 DEBUG_DISPLAY_ERROR( 1023 L"The GL_ARB_texture_env_crossbar extension doesn't appear to be available on your computer." 1024 L" Shadows are not available and overall graphics quality might suffer." 1025 L" You are advised to try installing newer drivers and/or upgrade your graphics card."); 1032 1033 swprintf_s(caption,ARRAY_SIZE(caption),L"Missing GL_ARB_texture_env_crossbar extension!"); 1034 swprintf_s(buf,ARRAY_SIZE(buf), 1035 L"The GL_ARB_texture_env_crossbar extension doesn't appear to be available on your computer.\n" 1036 L" Shadows are not available and overall graphics quality might suffer.\n\n" 1037 L" You are advised to try installing newer drivers and/or upgrade your graphics card." 1038 ); 1039 sys_display_msg(caption,buf); 1040 1026 1041 g_Shadows = false; 1027 1042 } 1028 1043 1029 1044 ogl_WarnIfError(); 1045 1030 1046 InitRenderer(); 1031 1047 1032 1048 InitInput();