From f2cf27f0d25a75109fc278afd9925165191df51a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 12 May 2012 03:02:22 +0300 Subject: Fix code style. --- src/openglgraphics.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/openglgraphics.cpp') diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp index b979cb473..4f800bf9b 100644 --- a/src/openglgraphics.cpp +++ b/src/openglgraphics.cpp @@ -1160,9 +1160,6 @@ void OpenGLGraphics::drawPoint(int x, int y) void OpenGLGraphics::drawLine(int x1, int y1, int x2, int y2) { - unsigned int vp = 4; - const unsigned int vLimit = vertexBufSize * 4; - setTexturingAndBlending(false); glDisableClientState(GL_TEXTURE_COORD_ARRAY); @@ -1171,7 +1168,7 @@ void OpenGLGraphics::drawLine(int x1, int y1, int x2, int y2) mFloatTexArray[2] = static_cast(x2) + 0.5f; mFloatTexArray[3] = static_cast(y2) + 0.5f; - drawLineArrayf(vp); + drawLineArrayf(4); glEnableClientState(GL_TEXTURE_COORD_ARRAY); } -- cgit v1.2.3-70-g09d2