From 6c5940fd19afcbedf5ab78bfd589751e9446555e Mon Sep 17 00:00:00 2001
From: Maxime Graulich <maxime.graulich@gmail.com>
Date: Tue, 17 Sep 2013 08:45:28 +0000
Subject: [PATCH] mobile: draw axes and scale over everything else

---
 contrib/mobile/drawContext.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/contrib/mobile/drawContext.cpp b/contrib/mobile/drawContext.cpp
index c94b66cf91..886f1dcd72 100644
--- a/contrib/mobile/drawContext.cpp
+++ b/contrib/mobile/drawContext.cpp
@@ -573,12 +573,6 @@ void drawContext::drawView()
 	checkGlError("Initialize position");
 
 	//
-	this->drawAxes(this->_right - (this->_top - this->_bottom)/15.0,
-                   this->_bottom + (this->_top - this->_bottom)/15.0,
-                    0, (this->_top - this->_bottom)/20.);
-	checkGlError("Draw axes");
-	this->drawScale();
-	checkGlError("Draw scales");
   glEnable(GL_DEPTH_TEST);
 	this->drawMesh();
 	checkGlError("Draw mesh");
@@ -587,6 +581,12 @@ void drawContext::drawView()
 	this->drawPost();
 	checkGlError("Draw post-pro");
   glDisable(GL_DEPTH_TEST);
+	this->drawScale();
+	checkGlError("Draw scales");
+	this->drawAxes(this->_right - (this->_top - this->_bottom)/15.0,
+                   this->_bottom + (this->_top - this->_bottom)/15.0,
+                    0, (this->_top - this->_bottom)/20.);
+	checkGlError("Draw axes");
 }
 
 std::vector<std::string> commandToVector(const std::string cmd)
-- 
GitLab