Mesa (master): mesa: update texstore comments for R/G textures
Brian Paul
brianp at kemper.freedesktop.org
Tue Nov 29 01:10:51 UTC 2011
Module: Mesa
Branch: master
Commit: ae70caf7eb708351ee93b35926142e503be79d39
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae70caf7eb708351ee93b35926142e503be79d39
Author: Brian Paul <brianp at vmware.com>
Date: Mon Nov 28 18:09:14 2011 -0700
mesa: update texstore comments for R/G textures
---
src/mesa/main/texstore.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 6319e70..0079590 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -2226,7 +2226,7 @@ _mesa_texstore_unorm88(TEXSTORE_PARAMS)
if (dstFormat == MESA_FORMAT_AL88 ||
dstFormat == MESA_FORMAT_RG88) {
for (col = 0; col < srcWidth; col++) {
- /* src[0] is luminance, src[1] is alpha */
+ /* src[0] is luminance (or R), src[1] is alpha (or G) */
dstUS[col] = PACK_COLOR_88( src[1],
src[0] );
src += 2;
@@ -2234,7 +2234,7 @@ _mesa_texstore_unorm88(TEXSTORE_PARAMS)
}
else {
for (col = 0; col < srcWidth; col++) {
- /* src[0] is luminance, src[1] is alpha */
+ /* src[0] is luminance (or R), src[1] is alpha (or G) */
dstUS[col] = PACK_COLOR_88_REV( src[1],
src[0] );
src += 2;
More information about the mesa-commit
mailing list