diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-11 02:13:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-11 02:22:49 +0300 |
commit | 085b2b100cc55cf2d337c448cf388328434bde4e (patch) | |
tree | b6327f6f0669ea7b505fe3b04883a7d4efaf6a50 /src/render/mobileopengl2graphics.cpp | |
parent | 59ab65919f9292b9aa324d1406033786c34cf4ce (diff) | |
download | plus-085b2b100cc55cf2d337c448cf388328434bde4e.tar.gz plus-085b2b100cc55cf2d337c448cf388328434bde4e.tar.bz2 plus-085b2b100cc55cf2d337c448cf388328434bde4e.tar.xz plus-085b2b100cc55cf2d337c448cf388328434bde4e.zip |
Remove commented code from mobileopengl2graphics.
Diffstat (limited to 'src/render/mobileopengl2graphics.cpp')
-rw-r--r-- | src/render/mobileopengl2graphics.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/render/mobileopengl2graphics.cpp b/src/render/mobileopengl2graphics.cpp index 8e34cbbe5..41c944d86 100644 --- a/src/render/mobileopengl2graphics.cpp +++ b/src/render/mobileopengl2graphics.cpp @@ -975,7 +975,6 @@ void MobileOpenGL2Graphics::drawRectangle(const Rect& rect) x2, y1, 0, 0 }; -// logger->log("allocate: %d, %ld", mVboBinded, sizeof(vertices)); mglBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STREAM_DRAW); #ifdef DEBUG_DRAW_CALLS @@ -1001,7 +1000,6 @@ void MobileOpenGL2Graphics::fillRectangle(const Rect& rect) x2, y2, 0, 0 }; -// logger->log("allocate: %d, %ld", mVboBinded, sizeof(vertices)); mglBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STREAM_DRAW); #ifdef DEBUG_DRAW_CALLS @@ -1173,13 +1171,11 @@ void MobileOpenGL2Graphics::bindArrayBufferAndAttributes(const GLuint vbo) mAttributesBinded = mVboBinded; mglVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 0, 0); -// mglBindVertexBuffer(0, mVboBinded, 0, 4 * sizeof(GLfloat)); } else if (mAttributesBinded != mVboBinded) { mAttributesBinded = mVboBinded; mglVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 0, 0); -// mglBindVertexBuffer(0, mVboBinded, 0, 4 * sizeof(GLfloat)); } } @@ -1189,7 +1185,6 @@ void MobileOpenGL2Graphics::bindAttributes() { mAttributesBinded = mVboBinded; mglVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 0, 0); -// mglBindVertexBuffer(0, mVboBinded, 0, 4 * sizeof(GLfloat)); } } @@ -1271,20 +1266,12 @@ void MobileOpenGL2Graphics::finalize(ImageVertexes *const vert) const int sz = static_cast<int>(floatTexPool.size()); vbos.resize(sz); mglGenBuffers(sz, &vbos[0]); -/* - for (int f = 0; f < sz; f ++) - logger->log("gen buffers: %u", vbos[f]); -*/ for (ft = floatTexPool.begin(), ivp = vp.begin(), ivbo = vbos.begin(); ft != ft_end && ivp != ivp_end; ++ ft, ++ ivp, ++ ivbo) { bindArrayBuffer(*ivbo); -/* - logger->log("allocate: %d, %ld", mVboBinded, - (*ivp) * sizeof(GLfloat)); -*/ mglBufferData(GL_ARRAY_BUFFER, (*ivp) * sizeof(GLfloat), *ft, GL_STATIC_DRAW); } |