Mesa (master): st/mesa: put const qualifer on format_map table

Brian Paul brianp at kemper.freedesktop.org
Tue Jun 21 00:16:23 UTC 2011


Module: Mesa
Branch: master
Commit: bc60a7515a5ea2c1d3ae79a9e5dac7d5d2ed7276
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bc60a7515a5ea2c1d3ae79a9e5dac7d5d2ed7276

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Jun 20 18:07:28 2011 -0600

st/mesa: put const qualifer on format_map table

---

 src/mesa/state_tracker/st_format.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index 45e4766..1d3d6cc 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -608,7 +608,7 @@ struct format_mapping
  * Multiple GL enums might map to multiple pipe_formats.
  * The first pipe format in the list that's supported is the one that's chosen.
  */
-static struct format_mapping format_map[] = {
+static const struct format_mapping format_map[] = {
    /* Basic RGB, RGBA formats */
    {
       { GL_RGB10, GL_RGB10_A2, 0 },




More information about the mesa-commit mailing list