summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-13 12:55:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-13 12:55:37 +0300
commite66c54b5ba9469396ede6d9557688f4441c822a2 (patch)
tree9ecce4d8bef2b20f88f9081e5e367ccaf6fb6639
parent81d2b31c5d8e8fb22e9b0635c003127e07c3e3f0 (diff)
downloadmv-e66c54b5ba9469396ede6d9557688f4441c822a2.tar.gz
mv-e66c54b5ba9469396ede6d9557688f4441c822a2.tar.bz2
mv-e66c54b5ba9469396ede6d9557688f4441c822a2.tar.xz
mv-e66c54b5ba9469396ede6d9557688f4441c822a2.zip
Remove debug logging from modernopengl.
-rw-r--r--src/render/modernopenglgraphics.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp
index fd9581285..f37e3336a 100644
--- a/src/render/modernopenglgraphics.cpp
+++ b/src/render/modernopenglgraphics.cpp
@@ -545,20 +545,16 @@ inline void ModernOpenGLGraphics::drawVertexes(const
std::vector<GLuint>::const_iterator ivbo;
const std::vector<int>::const_iterator ivp_end = vp.end();
- logger->log("drawVertexes start");
for (ivp = vp.begin(), ivbo = vbos.begin();
ivp != ivp_end;
++ ivp, ++ ivbo)
{
- logger->log("bind vbo: %d", *ivbo);
- logger->log("buf size in vetexes: %d", (*ivp) / 4);
bindArrayBufferAndAttributes(*ivbo);
#ifdef DEBUG_DRAW_CALLS
mDrawCalls ++;
#endif
glDrawArrays(GL_TRIANGLES, 0, *ivp / 4);
}
- logger->log("drawVertexes end");
}
void ModernOpenGLGraphics::calcPattern(ImageVertexes *const vert,
@@ -1168,13 +1164,10 @@ void ModernOpenGLGraphics::finalize(ImageVertexes *const vert)
vbos.resize(sz);
mglGenBuffers(sz, &vbos[0]);
- logger->log("finalize start");
for (ft = floatTexPool.begin(), ivp = vp.begin(), ivbo = vbos.begin();
ft != ft_end && ivp != ivp_end;
++ ft, ++ ivp, ++ ivbo)
{
- logger->log("bind vbo: %d", *ivbo);
- logger->log("buf size in vetexes: %d", *ivp / 4);
bindArrayBuffer(*ivbo);
mglBufferData(GL_ARRAY_BUFFER, (*ivp) * sizeof(GLfloat),
*ft, GL_DYNAMIC_DRAW);
@@ -1186,7 +1179,6 @@ void ModernOpenGLGraphics::finalize(ImageVertexes *const vert)
delete [] (*it);
}
floatTexPool.clear();
- logger->log("finalize end");
}
void ModernOpenGLGraphics::drawTriangleArray(const int size)