mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
Unbind VAO.
This commit is contained in:
parent
7b1e4412b1
commit
45a1745449
@ -87,6 +87,7 @@
|
||||
- (void) flush {
|
||||
if (!_verticesCount) return;
|
||||
|
||||
ccGLBindVAO(0);
|
||||
ccGLBindTexture2D(_texture.name);
|
||||
glEnableVertexAttribArray(kCCVertexAttrib_Position);
|
||||
glEnableVertexAttribArray(kCCVertexAttrib_Color);
|
||||
|
||||
@ -93,6 +93,7 @@ void PolygonBatch::add (CCTexture2D* addTexture,
|
||||
void PolygonBatch::flush () {
|
||||
if (!verticesCount) return;
|
||||
|
||||
ccGLBindVAO(0);
|
||||
ccGLBindTexture2D(texture->getName());
|
||||
glEnableVertexAttribArray(kCCVertexAttrib_Position);
|
||||
glEnableVertexAttribArray(kCCVertexAttrib_Color);
|
||||
|
||||
@ -93,6 +93,7 @@ void PolygonBatch::add (const Texture2D* addTexture,
|
||||
void PolygonBatch::flush () {
|
||||
if (!verticesCount) return;
|
||||
|
||||
GL::bindVAO(0);
|
||||
GL::bindTexture2D(texture->getName());
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_POSITION);
|
||||
glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_COLOR);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user