diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-14 16:18:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-14 16:18:42 +0300 |
commit | 75402569f455321e5fd078a57c35b2032a3bdbaf (patch) | |
tree | a3fb934b954c9c70ca8ca6155170596ba4458e9f /src/render/modernopenglgraphics.cpp | |
parent | 939e65b82212236cb9a9910786d5804589fac4dd (diff) | |
download | manaplus-75402569f455321e5fd078a57c35b2032a3bdbaf.tar.gz manaplus-75402569f455321e5fd078a57c35b2032a3bdbaf.tar.bz2 manaplus-75402569f455321e5fd078a57c35b2032a3bdbaf.tar.xz manaplus-75402569f455321e5fd078a57c35b2032a3bdbaf.zip |
Add OpenGL function glVertexAttribIPointer.
Diffstat (limited to 'src/render/modernopenglgraphics.cpp')
-rw-r--r-- | src/render/modernopenglgraphics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index c0809012d..df14a026e 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -172,6 +172,7 @@ void ModernOpenGLGraphics::postInit() mglBindVertexBuffer(0, mVbo, 0, 4 * sizeof(GLint)); mglVertexAttribBinding(mPosAttrib, 0); +// mglVertexAttribIPointer(mPosAttrib, 4, GL_INT, 4 * sizeof(GLint), 0); mAttributesCached = mVbo; screenResized(); @@ -1203,6 +1204,7 @@ void ModernOpenGLGraphics::bindArrayBufferAndAttributes(const GLuint vbo) mAttributesCached = mVboCached; // logger->log("bind vertex buffer: %u", mVboCached); mglBindVertexBuffer(0, mVboCached, 0, 4 * sizeof(GLint)); +// mglVertexAttribIPointer(mPosAttrib, 4, GL_INT, 4 * sizeof(GLint), 0); // mglVertexAttribBinding(mPosAttrib, 0); } else if (mAttributesCached != mVboCached) @@ -1210,6 +1212,7 @@ void ModernOpenGLGraphics::bindArrayBufferAndAttributes(const GLuint vbo) mAttributesCached = mVboCached; // logger->log("bind vertex buffer: %u", mVboCached); mglBindVertexBuffer(0, mVboCached, 0, 4 * sizeof(GLint)); +// mglVertexAttribIPointer(mPosAttrib, 4, GL_INT, 4 * sizeof(GLint), 0); // mglVertexAttribBinding(mPosAttrib, 0); } } @@ -1220,6 +1223,7 @@ void ModernOpenGLGraphics::bindAttributes() { mAttributesCached = mVboCached; mglBindVertexBuffer(0, mVboCached, 0, 4 * sizeof(GLint)); +// mglVertexAttribIPointer(mPosAttrib, 4, GL_INT, 4 * sizeof(GLint), 0); // mglVertexAttribBinding(mPosAttrib, 0); } } |