mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-11 17:48:45 +08:00
Merge pull request #275 from vvaldik/master
[cocos2dx] PolygonBatch::flush crash fix
This commit is contained in:
commit
c993b4984d
@ -94,6 +94,7 @@ void PolygonBatch::flush () {
|
||||
if (!verticesCount) return;
|
||||
|
||||
GL::bindTexture2D(texture->getName());
|
||||
GL::bindVAO(0);
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_POSITION);
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_COLOR);
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_TEX_COORDS);
|
||||
|
||||
@ -94,6 +94,7 @@ void PolygonBatch::flush () {
|
||||
if (!verticesCount) return;
|
||||
|
||||
GL::bindTexture2D(texture->getName());
|
||||
GL::bindVAO(0);
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_POSITION);
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_COLOR);
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_TEX_COORDS);
|
||||
|
||||
@ -94,6 +94,7 @@ void PolygonBatch::flush () {
|
||||
if (!_verticesCount) return;
|
||||
|
||||
GL::bindTexture2D(_texture->getName());
|
||||
GL::bindVAO(0);
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_POSITION);
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_COLOR);
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_TEX_COORDS);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user