Skip to content
Browse files

Increased allowed size for substitutions.

  • Loading branch information...
1 parent e1f8e87 commit c1ed8180249e34dcaba85cf650155350357b65cc @acaudwell committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 shader.cpp
View
4 shader.cpp
@@ -1272,10 +1272,10 @@ void Shader::includeFile(GLenum shader_object_type, const std::string& filename)
void Shader::addSubstitute(const std::string& name, const char *value, ...) {
va_list vl;
- char sub[4096];
+ char sub[65536];
va_start(vl, value);
- vsnprintf(sub, 4096, value, vl);
+ vsnprintf(sub, 65536, value, vl);
va_end(vl);
substitutions[name] = sub;

0 comments on commit c1ed818

Please sign in to comment.
Something went wrong with that request. Please try again.