From 19982aae005e5841b233f588ccb9669bd3e5cbc9 Mon Sep 17 00:00:00 2001 From: "Huabing.Xu" Date: Tue, 16 Jun 2015 14:04:50 +0800 Subject: [PATCH] fix android background and foreground bug with VertexAttributeBinding --- cocos/renderer/CCGLProgram.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/renderer/CCGLProgram.cpp b/cocos/renderer/CCGLProgram.cpp index 224bf27536..b60c8d128c 100644 --- a/cocos/renderer/CCGLProgram.cpp +++ b/cocos/renderer/CCGLProgram.cpp @@ -308,7 +308,7 @@ void GLProgram::bindPredefinedVertexAttribs() void GLProgram::parseVertexAttribs() { - _vertexAttribs.clear(); + //_vertexAttribs.clear(); // Query and store vertex attribute meta-data from the program. GLint activeAttributes; @@ -346,7 +346,7 @@ void GLProgram::parseVertexAttribs() void GLProgram::parseUniforms() { - _userUniforms.clear(); + //_userUniforms.clear(); // Query and store uniforms from the program. GLint activeUniforms;