Merge pull request #2684 from ZhiqianXia/Dev

Add support for gl_MaxVaryingVectors for ogl.
This commit is contained in:
Greg Fischer 2021-07-07 15:08:55 -06:00 committed by GitHub
commit 9e707294f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7283,6 +7283,9 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
snprintf(builtInConstant, maxSize, "const int gl_MaxFragmentUniformVectors = %d;", resources.maxFragmentUniformVectors);
s.append(builtInConstant);
snprintf(builtInConstant, maxSize, "const int gl_MaxVaryingVectors = %d;", resources.maxVaryingVectors);
s.append(builtInConstant);
}
snprintf(builtInConstant, maxSize, "const int gl_MaxVertexAttribs = %d;", resources.maxVertexAttribs);