glsl: update a texture/sampler comment
authorBrian Paul <brianp@vmware.com>
Tue, 25 Aug 2009 23:43:16 +0000 (17:43 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 25 Aug 2009 23:46:10 +0000 (17:46 -0600)
src/mesa/shader/slang/slang_link.c

index 1caf5946fdcba40f7c4b2fd0d5ae5af7b4c2f907..169c07f8ceac6a0ea4ba10e1d0e67362a04ebfce 100644 (file)
@@ -288,6 +288,7 @@ link_uniform_vars(GLcontext *ctx,
    for (i = 0; i < prog->NumInstructions; i++) {
       struct prog_instruction *inst = prog->Instructions + i;
       if (_mesa_is_tex_instruction(inst->Opcode)) {
+         /* here, inst->TexSrcUnit is really the sampler unit */
          const GLint oldSampNum = inst->TexSrcUnit;
 
 #if 0
@@ -295,7 +296,6 @@ link_uniform_vars(GLcontext *ctx,
                 inst->TexSrcUnit, samplerMap[ inst->TexSrcUnit ]);
 #endif
 
-         /* here, texUnit is really samplerUnit */
          if (oldSampNum < Elements(samplerMap)) {
             const GLuint newSampNum = samplerMap[oldSampNum];
             inst->TexSrcUnit = newSampNum;