From ce482631a36163e3ac6dc8ba21b3799eb4a0c10e Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 11 Oct 2010 20:26:55 +0200 Subject: [PATCH] last workaround did not work. Try a really simple one then. --- radiant/brush.h | 2 -- radiant/camwindow.cpp | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/radiant/brush.h b/radiant/brush.h index 03f7611..80e0bd0 100644 --- a/radiant/brush.h +++ b/radiant/brush.h @@ -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); diff --git a/radiant/camwindow.cpp b/radiant/camwindow.cpp index 6b78c58..8a0c894 100644 --- a/radiant/camwindow.cpp +++ b/radiant/camwindow.cpp @@ -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) -- 2.39.2