summaryrefslogtreecommitdiff
path: root/src/openglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-12 03:02:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-12 03:02:22 +0300
commitf2cf27f0d25a75109fc278afd9925165191df51a (patch)
tree30e5591dd42f230beefd4d213ed642615f4bf919 /src/openglgraphics.cpp
parent70b12c969e34bc5e1530bc7de05fdf3e7ecd6a81 (diff)
downloadmanaverse-f2cf27f0d25a75109fc278afd9925165191df51a.tar.gz
manaverse-f2cf27f0d25a75109fc278afd9925165191df51a.tar.bz2
manaverse-f2cf27f0d25a75109fc278afd9925165191df51a.tar.xz
manaverse-f2cf27f0d25a75109fc278afd9925165191df51a.zip
Fix code style.
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r--src/openglgraphics.cpp5
1 files changed, 1 insertions, 4 deletions
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<float>(x2) + 0.5f;
mFloatTexArray[3] = static_cast<float>(y2) + 0.5f;
- drawLineArrayf(vp);
+ drawLineArrayf(4);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
}