From: Rudolf Polzer Date: Mon, 11 Oct 2010 18:19:52 +0000 (+0200) Subject: reinit OpenGL state on redraw properly X-Git-Tag: xonotic-v0.5.0~172 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f7a2cb9e04673b885c99a78a29b2a5318f9c50e7;p=xonotic%2Fnetradiant.git reinit OpenGL state on redraw properly --- diff --git a/download-gamepacks.sh b/download-gamepacks.sh index a99499e4..41af47c9 100755 --- a/download-gamepacks.sh +++ b/download-gamepacks.sh @@ -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 diff --git a/radiant/camwindow.cpp b/radiant/camwindow.cpp index 65090136..6b78c589 100644 --- a/radiant/camwindow.cpp +++ b/radiant/camwindow.cpp @@ -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);