summaryrefslogtreecommitdiff
path: root/src/render/modernopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-14 16:18:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-14 16:18:42 +0300
commit75402569f455321e5fd078a57c35b2032a3bdbaf (patch)
treea3fb934b954c9c70ca8ca6155170596ba4458e9f /src/render/modernopenglgraphics.cpp
parent939e65b82212236cb9a9910786d5804589fac4dd (diff)
downloadplus-75402569f455321e5fd078a57c35b2032a3bdbaf.tar.gz
plus-75402569f455321e5fd078a57c35b2032a3bdbaf.tar.bz2
plus-75402569f455321e5fd078a57c35b2032a3bdbaf.tar.xz
plus-75402569f455321e5fd078a57c35b2032a3bdbaf.zip
Add OpenGL function glVertexAttribIPointer.
Diffstat (limited to 'src/render/modernopenglgraphics.cpp')
-rw-r--r--src/render/modernopenglgraphics.cpp4
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);
}
}