projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfad484
)
mesa: add comment for _mesa_get_srgb_format_linear()
author
Brian Paul
<brianp@vmware.com>
Sun, 16 Jan 2011 03:41:06 +0000
(20:41 -0700)
committer
Brian Paul
<brianp@vmware.com>
Sun, 16 Jan 2011 03:41:06 +0000
(20:41 -0700)
src/mesa/main/formats.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/formats.c
b/src/mesa/main/formats.c
index 3ccc40b9a7957650050b8362cb474c7f5b14e392..b8fed182570a573ed03504457149064d6cbad8f7 100644
(file)
--- a/
src/mesa/main/formats.c
+++ b/
src/mesa/main/formats.c
@@
-1090,6
+1090,11
@@
_mesa_get_format_color_encoding(gl_format format)
}
}
+
+/**
+ * For an sRGB format, return the corresponding linear color space format.
+ * For non-sRGB formats, return the format as-is.
+ */
gl_format
_mesa_get_srgb_format_linear(gl_format format)
{