]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
reinit OpenGL state on redraw properly
authorRudolf Polzer <divverent@alientrap.org>
Mon, 11 Oct 2010 18:19:52 +0000 (20:19 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 11 Oct 2010 18:19:52 +0000 (20:19 +0200)
download-gamepacks.sh
radiant/camwindow.cpp

index a99499e4d03aaf85529391b5aa11212c1743b767..41af47c9fb28c1829455a12a8f99bd30359a2d15 100755 (executable)
@@ -156,5 +156,5 @@ pack Quake2WorldPack GPL         svn    svn://jdolan.dyndns.org/quake2world/trun
 pack QuakePack       proprietary zip1   http://ingar.satgnu.net/files/gtkradiant/gamepacks/QuakePack.zip
 pack TremulousPack   proprietary zip1   http://ingar.satgnu.net/files/gtkradiant/gamepacks/TremulousPack.zip
 pack UFOAIPack       proprietary svn    https://zerowing.idsoftware.com/svn/radiant.gamepacks/UFOAIPack/branches/1.5/
-#pack WarsowPack      GPL         svn    https://svn.bountysource.com/wswpack/trunk/netradiant/games/WarsowPack/
+pack WarsowPack      GPL         svn    https://svn.bountysource.com/wswpack/trunk/netradiant/games/WarsowPack/
 pack XonoticPack     GPL         git    git://git.xonotic.org/xonotic/netradiant-xonoticpack.git
index 65090136278dd3dd2c11e40202e593589a0826cb..6b78c589900bc3b7e69328332186b383106840eb 100644 (file)
@@ -1551,6 +1551,9 @@ void CamWnd::Cam_Draw()
   glGetIntegerv (GL_VIEWPORT, viewprt);
 #endif
 
+  // initialize OpenGL state for glClear to work
+  GlobalShaderCache().render(RENDER_DEFAULT, m_Camera.modelview, m_Camera.projection, m_view.getViewer());
+
   // enable depth buffer writes
   glDepthMask(GL_TRUE);