Another simple one.

This commit is contained in:
Jason Felds
2013-05-01 23:01:55 -04:00
parent e61e09973a
commit 9d19421b7a
+4 -4
View File
@@ -310,11 +310,11 @@ GLhandleARB CompileShader( GLenum ShaderType, RString sFile, vector<RString> asD
GLhandleARB hShader = glCreateShaderObjectARB( ShaderType );
vector<const GLcharARB *> apData;
vector<GLint> aiLength;
FOREACH( RString, asDefines, s )
for (RString &s : asDefines)
{
*s = ssprintf( "#define %s\n", s->c_str() );
apData.push_back( s->data() );
aiLength.push_back( s->size() );
s = ssprintf( "#define %s\n", s.c_str() );
apData.push_back( s.data() );
aiLength.push_back( s.size() );
}
apData.push_back( "#line 1\n" );
aiLength.push_back( 8 );