aboutsummaryrefslogtreecommitdiffstats
path: root/emulator
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2014-10-29 19:16:15 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-10-29 19:16:16 +0000
commita829d501fa16bdbdcfb85dfcff88c37dbcfac956 (patch)
tree882c32b51f0778d6caeaeb63a8fbf1807a798fd1 /emulator
parentffe2a60cb0ac24d073fb46d50a9cedfd82da4a91 (diff)
parent57da2bfb0dba29677c9cc06442644bc7c720af94 (diff)
downloadsdk-a829d501fa16bdbdcfb85dfcff88c37dbcfac956.zip
sdk-a829d501fa16bdbdcfb85dfcff88c37dbcfac956.tar.gz
sdk-a829d501fa16bdbdcfb85dfcff88c37dbcfac956.tar.bz2
Merge "Properly reset source code buffer" into studio-1.0-dev
Diffstat (limited to 'emulator')
-rw-r--r--emulator/opengl/host/libs/Translator/GLES_V2/ShaderParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/emulator/opengl/host/libs/Translator/GLES_V2/ShaderParser.cpp b/emulator/opengl/host/libs/Translator/GLES_V2/ShaderParser.cpp
index 940538a..9bbedbf 100644
--- a/emulator/opengl/host/libs/Translator/GLES_V2/ShaderParser.cpp
+++ b/emulator/opengl/host/libs/Translator/GLES_V2/ShaderParser.cpp
@@ -36,6 +36,7 @@ ShaderParser::ShaderParser(GLenum type):ObjectData(SHADER_DATA),
};
void ShaderParser::setSrc(const Version& ver,GLsizei count,const GLchar** strings,const GLint* length){
+ m_src.clear();
for(int i = 0;i<count;i++){
m_src.append(strings[i]);
}