Kaydet (Commit) 5686968c authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

small fix for missed code

Change-Id: Ida611464603a8a6229b771380ce5c6b20aa268ef
üst 00a6d94e
......@@ -549,7 +549,7 @@ int OpenGLRender::SetLine2DShapePoint(float x, float y, int listLength)
m_fPicTop = actualY > m_fPicTop ? actualY : m_fPicTop;
if (m_iPointNum == ((listLength * 3) - 1))
if (m_Line2DPointList.size() == size_t((listLength * 3) - 1))
{
m_Line2DShapePointList.push_back(m_Line2DPointList);
}
......@@ -597,7 +597,6 @@ int OpenGLRender::RenderLine2FBO(int)
CHECK_GL_ERROR();
m_Line2DShapePointList.pop_front();
}
m_iPointNum = 0;
GLenum status;
CHECK_GL_ERROR();
CHECK_GL_FRAME_BUFFER_STATUS();
......
......@@ -91,6 +91,7 @@ typedef struct RectanglePointList
float xScale;
float yScale;
}RectanglePointList;
typedef struct TextInfo
{
GLuint texture;
......@@ -258,8 +259,6 @@ private:
int m_iExternRC;
int m_iPointNum;
Line2DPointList m_Line2DPointList;
int m_iFboIdx;
......
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