diff options
author | Dave Parks <davep@lindenlab.com> | 2012-06-28 16:32:54 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-06-28 16:32:54 -0500 |
commit | bedbbf7c0201275e0a48a0cbbb2a567be4baab3d (patch) | |
tree | f11f9e612ab503e596073269c17c6e4cc1d3ae13 /indra/llrender/llglslshader.cpp | |
parent | 90547ff411db177bf6424ca553449a81a808fc0f (diff) | |
parent | f3afac420cd3c89eb396fb1f0b77ab4804212415 (diff) |
Merge
Diffstat (limited to 'indra/llrender/llglslshader.cpp')
-rw-r--r-- | indra/llrender/llglslshader.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp index 4b7e639aed..7cbf39096e 100644 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -129,7 +129,9 @@ void LLGLSLShader::unload() } BOOL LLGLSLShader::createShader(vector<string> * attributes, - vector<string> * uniforms) + vector<string> * uniforms, + U32 varying_count, + const char** varyings) { //reloading, reset matrix hash values for (U32 i = 0; i < LLRender::NUM_MATRIX_MODES; ++i) @@ -172,6 +174,13 @@ BOOL LLGLSLShader::createShader(vector<string> * attributes, mFeatures.mIndexedTextureChannels = llmin(mFeatures.mIndexedTextureChannels, 1); } +#ifdef GL_INTERLEAVED_ATTRIBS + if (varying_count > 0 && varyings) + { + glTransformFeedbackVaryings(mProgramObject, varying_count, varyings, GL_INTERLEAVED_ATTRIBS); + } +#endif + // Map attributes and uniforms if (success) { |