Advertisement
historic_bruno

fixed function warnings

Feb 9th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.52 KB | None | 0 0
  1. Index: binaries/data/mods/public/gui/pregame/mainmenu.js
  2. ===================================================================
  3. --- binaries/data/mods/public/gui/pregame/mainmenu.js   (revision 13155)
  4. +++ binaries/data/mods/public/gui/pregame/mainmenu.js   (working copy)
  5. @@ -17,9 +17,24 @@
  6.  
  7.     EnableUserReport(Engine.IsUserReportEnabled());
  8.  
  9. -   // Only show splash screen once
  10. -   if (initData && initData.isStartup && Engine.IsSplashScreenEnabled())
  11. -       Engine.PushGuiPage("page_splashscreen.xml", { "page": "splashscreen" } );
  12. +   // Only show splash screen(s) once
  13. +   if (initData && initData.isStartup)
  14. +   {
  15. +       if (Engine.IsSplashScreenEnabled())
  16. +           Engine.PushGuiPage("page_splashscreen.xml", { "page": "splashscreen" } );
  17. +
  18. +       // Warn about deprecated fixed render path
  19. +       if (renderer.renderpath == "fixed")
  20. +           messageBox(
  21. +               600,
  22. +               300,
  23. +               "[font=\"serif-bold-16\"][color=\"200 20 20\"]Warning:[/color] You appear to be using non-shader (fixed function) graphics. This option will be removed in a future 0 A.D. release, to allow for more advanced graphics features. We advise upgrading your graphics card to a more recent, shader-compatible model.\n\nPlease press \"Read More\" for more information or \"Ok\" to continue.",
  24. +               "WARNING!",
  25. +               0,
  26. +               ["Ok", "Read More"],
  27. +               [null, function() { Engine.OpenURL("http://www.wildfiregames.com/forum/index.php?showtopic=16734"); }]
  28. +           );
  29. +   }
  30.  }
  31.  
  32.  var t0 = new Date;
  33. Index: source/ps/GameSetup/GameSetup.cpp
  34. ===================================================================
  35. --- source/ps/GameSetup/GameSetup.cpp   (revision 13155)
  36. +++ source/ps/GameSetup/GameSetup.cpp   (working copy)
  37. @@ -958,6 +958,18 @@
  38.     g_GUI = new CGUIManager(g_ScriptingHost.GetScriptInterface());
  39.  
  40.     // (must come after SetVideoMode, since it calls ogl_Init)
  41. +   if (ogl_HaveExtensions(0, "GL_ARB_vertex_program", "GL_ARB_fragment_program", NULL)
  42. +       && ogl_HaveExtensions(0, "GL_ARB_vertex_shader", "GL_ARB_fragment_shader", NULL))
  43. +   {
  44. +       DEBUG_DISPLAY_ERROR(
  45. +           L"Your graphics card doesn't appear to be fully compatible with OpenGL shaders."
  46. +           L" In the future, the game will not support pre-shader graphics cards."
  47. +           L" You are advised to try installing newer drivers and/or upgrade your graphics card."
  48. +           L" For more information, please see http://www.wildfiregames.com/forum/index.php?showtopic=16734"
  49. +       );
  50. +       // TODO: actually quit once fixed function support is dropped
  51. +   }
  52. +
  53.     const char* missing = ogl_HaveExtensions(0,
  54.         "GL_ARB_multitexture",
  55.         "GL_EXT_draw_range_elements",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement