reinit OpenGL state on redraw properly

This commit is contained in:
Rudolf Polzer 2010-10-11 20:19:52 +02:00
parent 61c537beac
commit f7a2cb9e04
2 changed files with 4 additions and 1 deletions

View File

@ -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

View 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);