diff options
author | Brian Paul <[email protected]> | 2011-09-14 08:31:47 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-14 08:32:30 -0600 |
commit | ec4b823f6748fea4a097ea982d0ab5886fca4c9e (patch) | |
tree | fa772697f3ff4cd9dd29131613501cf3738ff5e4 /src/mesa | |
parent | c57c7a86ae55897167e345832366d42af0903cca (diff) |
st/mesa: fix/update comment on st_translate_color()
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_format.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index bd4f0860c52..6eb8a506b2b 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -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, |