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