last workaround did not work. Try a really simple one then.

This commit is contained in:
Rudolf Polzer 2010-10-11 20:26:55 +02:00
parent f7a2cb9e04
commit ce482631a3
2 changed files with 1 additions and 5 deletions

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

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