st/mesa: fix/update comment on st_translate_color()
authorBrian Paul <brianp@vmware.com>
Wed, 14 Sep 2011 14:31:47 +0000 (08:31 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 14 Sep 2011 14:32:30 +0000 (08:32 -0600)
src/mesa/state_tracker/st_format.c

index bd4f0860c5270471abcc98fb86bb5b07d87139dc..6eb8a506b2b2cd54530ef9f7790f91062ab06062 100644 (file)
@@ -1441,8 +1441,9 @@ st_sampler_compat_formats(enum pipe_format format1, enum pipe_format format2)
  * This is used for translating texture border color and the clear
  * color.  For example, the clear color is interpreted according to
  * the renderbuffer's base format.  For example, if clearing a
- * GL_LUMINANCE buffer, ClearColor[0] = luminance and ClearColor[1] =
- * alpha.  Similarly for texture border colors.
+ * GL_LUMINANCE buffer, we'll return colorOut[0] = colorOut[1] =
+ * colorOut[2] = colorIn[0].
+ * Similarly for texture border colors.
  */
 void
 st_translate_color(const GLfloat colorIn[4], GLenum baseFormat,