mesa: move declaration to prevent unused var warning
authorBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2009 13:54:44 +0000 (07:54 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2009 13:54:44 +0000 (07:54 -0600)
src/mesa/main/texstore.c

index 7b449d03bea97b2c908acb1f07a01f128db512e3..6237511e9f96bd75293c5e7532190e6f7903e5ab 100644 (file)
@@ -3108,8 +3108,8 @@ _mesa_texstore_null(TEXSTORE_PARAMS)
 static StoreTexImageFunc
 _mesa_get_texstore_func(gl_format format)
 {
-   GLuint i;
 #ifdef DEBUG
+   GLuint i;
    for (i = 0; i < MESA_FORMAT_COUNT; i++) {
       ASSERT(texstore_funcs[i].Name == i);
    }