mesa: const-qualify _mesa_is_legal_tex_storage_format ctx param
authorBrian Paul <brianp@vmware.com>
Thu, 17 Sep 2015 15:49:07 +0000 (09:49 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 22 Sep 2015 16:15:32 +0000 (10:15 -0600)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/texstorage.c
src/mesa/main/texstorage.h

index a29175e6cc6ea9890168aed2d93964895be4bea3..9fd969fbc53408dba6cab9c3676424f0aac5dd26 100644 (file)
@@ -202,7 +202,8 @@ update_fbo_texture(struct gl_context *ctx, struct gl_texture_object *texObj)
 
 
 GLboolean
-_mesa_is_legal_tex_storage_format(struct gl_context *ctx, GLenum internalformat)
+_mesa_is_legal_tex_storage_format(const struct gl_context *ctx,
+                                  GLenum internalformat)
 {
    /* check internal format - note that only sized formats are allowed */
    switch (internalformat) {
index 033ecb7edaa20bdc14fa25eedb6f9831252b9e3a..e80a9ff5b99299fa891cf049b0c5be3f5858119e 100644 (file)
@@ -111,7 +111,8 @@ _mesa_TextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels,
                           GLsizei width, GLsizei height, GLsizei depth);
 
 extern GLboolean
-_mesa_is_legal_tex_storage_format(struct gl_context *ctx, GLenum internalformat);
+_mesa_is_legal_tex_storage_format(const struct gl_context *ctx,
+                                  GLenum internalformat);
 
 extern GLboolean
 _mesa_AllocTextureStorage_sw(struct gl_context *ctx,