Kaydet (Commit) 0c3a8965 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

simplify code

Change-Id: If0b1c47a1e0f6084795fb5ca4a2acced736d4523
üst 49a788a3
......@@ -67,7 +67,7 @@ static GLfloat coordReverseVertices[] = {
};
#define CHECK_GL_FRAME_BUFFER_STATUS() \
status = glCheckFramebufferStatus(GL_FRAMEBUFFER);\
GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);\
if( status != GL_FRAMEBUFFER_COMPLETE ) {\
SAL_WARN("chart2.opengl", "OpenGL error: " << status );\
return -1;\
......@@ -243,7 +243,6 @@ int OpenGLRender::RenderLine2FBO(int)
CHECK_GL_ERROR();
m_Line2DShapePointList.pop_front();
}
GLenum status;
CHECK_GL_ERROR();
CHECK_GL_FRAME_BUFFER_STATUS();
m_fZStep += Z_STEP;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment