summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-01-15 20:41:06 -0700
committerBrian Paul <[email protected]>2011-01-15 20:41:06 -0700
commitaad7219f80e21739c521d58a6e32a14114ac0bb0 (patch)
tree94a4b44a7b72a15e3a819ad41446accd699acdee /src/mesa/main
parentbfad484505e5e313895ae797fe7c24cca97331b3 (diff)
mesa: add comment for _mesa_get_srgb_format_linear()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/formats.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index 3ccc40b9a79..b8fed182570 100644
--- 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)
{