]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
last workaround did not work. Try a really simple one then.
authorRudolf Polzer <divverent@alientrap.org>
Mon, 11 Oct 2010 18:26:55 +0000 (20:26 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 11 Oct 2010 18:26:55 +0000 (20:26 +0200)
radiant/brush.h
radiant/camwindow.cpp

index 03f76118c22ccbbf76f412437bb8c4def991d55d..80e0bd0265ae99e0aec49e9905c1ccc6b8212343 100644 (file)
@@ -1193,9 +1193,7 @@ public:
   void transform(const Matrix4& matrix, bool mirror)
   {
     if(g_brush_texturelock_enabled)
-    {
       Texdef_transformLocked(m_texdefTransformed, m_shader.width(), m_shader.height(), m_plane.plane3(), matrix);
-    }
 
     m_planeTransformed.transform(matrix, mirror);
 
index 6b78c589900bc3b7e69328332186b383106840eb..8a0c89494887640218331a7ea687992ef8a0d7ec 100644 (file)
@@ -1551,11 +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);
+  glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
 
   Vector3 clearColour(0, 0, 0);
   if(m_Camera.draw_mode != cd_lighting)