diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-31 19:20:14 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-31 19:25:12 +0100 |
commit | 5669da20e79aa3a76af440b7b972e0e8a5868e9e (patch) | |
tree | 7be1fd3a12c6e81edc9ef1d155398ff584e27678 /chart2/source | |
parent | 9aa225f0cb980d81bf0fdcc91dede3c7a3bdf99f (diff) |
standardize the z oder handling a bit more
Change-Id: I2d1eea5ffad071f37ea8475ce5ead5fb05e145c6
Diffstat (limited to 'chart2/source')
-rwxr-xr-x | chart2/source/view/main/OpenGLRender.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx index da99f813df5f..9cc75cbe1d90 100755 --- a/chart2/source/view/main/OpenGLRender.cxx +++ b/chart2/source/view/main/OpenGLRender.cxx @@ -62,7 +62,7 @@ using namespace std; #define WGL_SAMPLES_ARB 0x2042 #endif -#define Z_STEP 0.001; +#define Z_STEP 0.001 // end shaders @@ -507,7 +507,6 @@ int OpenGLRender::SetLine2DShapePoint(float x, float y, int listLength) int OpenGLRender::RenderLine2FBO(int) { - m_fZStep += Z_STEP; CHECK_GL_ERROR(); glLineWidth(m_fLineWidth); size_t listNum = m_Line2DShapePointList.size(); @@ -554,6 +553,7 @@ int OpenGLRender::RenderLine2FBO(int) GLenum status; CHECK_GL_ERROR(); CHECK_GL_FRAME_BUFFER_STATUS(); + m_fZStep += Z_STEP; return 0; } @@ -1286,7 +1286,6 @@ int OpenGLRender::RectangleShapePoint(float x, float y, float directionX, float int OpenGLRender::RenderRectangleShape(bool bBorder, bool bFill) { - m_fZStep += Z_STEP; size_t listNum = m_RectangleShapePointList.size(); for (size_t i = 0; i < listNum; i++) { @@ -1377,6 +1376,8 @@ int OpenGLRender::RenderRectangleShape(bool bBorder, bool bFill) m_RectangleShapePointList.pop_front(); } CHECK_GL_ERROR(); + + m_fZStep += Z_STEP; return 0; } @@ -1487,7 +1488,6 @@ int OpenGLRender::CreateTextTexture(const BitmapEx& rBitmapEx, awt::Point aPos, int OpenGLRender::RenderTextShape() { CHECK_GL_ERROR(); - m_fZStep += Z_STEP; size_t listNum = m_TextInfoList.size(); for (size_t i = 0; i < listNum; i++) { @@ -1537,6 +1537,7 @@ int OpenGLRender::RenderTextShape() m_TextInfoList.pop_front(); } CHECK_GL_ERROR(); + m_fZStep += Z_STEP; return 0; } |