mirror of https://github.com/axmolengine/axmol.git
Fixing errors when disabling VAO.
This commit is contained in:
parent
37f6685894
commit
4f9d0672aa
|
@ -209,7 +209,7 @@ void DrawNode::render()
|
|||
#if CC_TEXTURE_ATLAS_USE_VAO
|
||||
GL::bindVAO(_vao);
|
||||
#else
|
||||
GL::enableVertexAttribs(VERTEX_ATTRIB_FLAG_POS_COLOR_TEX);
|
||||
GL::enableVertexAttribs(GL::VERTEX_ATTRIB_FLAG_POS_COLOR_TEX);
|
||||
|
||||
glBindBuffer(GL_ARRAY_BUFFER, _vbo);
|
||||
// vertex
|
||||
|
|
|
@ -378,7 +378,7 @@ void ParticleSystemQuad::draw()
|
|||
|
||||
#define kQuadSize sizeof(_quads[0].bl)
|
||||
|
||||
GL::enableVertexAttribs( VERTEX_ATTRIB_FLAG_POS_COLOR_TEX );
|
||||
GL::enableVertexAttribs( GL::VERTEX_ATTRIB_FLAG_POS_COLOR_TEX );
|
||||
|
||||
glBindBuffer(GL_ARRAY_BUFFER, _buffersVBO[0]);
|
||||
// vertices
|
||||
|
|
|
@ -664,7 +664,7 @@ void TextureAtlas::drawNumberOfQuads(int numberOfQuads, int start)
|
|||
_dirty = false;
|
||||
}
|
||||
|
||||
GL::enableVertexAttribs(VERTEX_ATTRIB_FLAG_POS_COLOR_TEX);
|
||||
GL::enableVertexAttribs(GL::VERTEX_ATTRIB_FLAG_POS_COLOR_TEX);
|
||||
|
||||
// vertices
|
||||
glVertexAttribPointer(GLProgram::VERTEX_ATTRIB_POSITION, 3, GL_FLOAT, GL_FALSE, kQuadSize, (GLvoid*) offsetof(V3F_C4B_T2F, vertices));
|
||||
|
|
Loading…
Reference in New Issue