summaryrefslogtreecommitdiff
path: root/src/mesa/main/texformat.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-27 21:32:12 -0600
committerBrian Paul <brianp@vmware.com>2009-09-27 21:32:12 -0600
commit729ff875f4c951798d2372940608201a6b195ca6 (patch)
tree4cb9f130a259210883721ec99dfef5153eb7dd5e /src/mesa/main/texformat.c
parentbd00a7fa4bb4bb71cd2eaf7ebb6749a709b5fdb9 (diff)
mesa: change _mesa_format_to_type_and_comps() format parameter type
Diffstat (limited to 'src/mesa/main/texformat.c')
-rw-r--r--src/mesa/main/texformat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
index dae98bcc6f..60b2065a6c 100644
--- a/src/mesa/main/texformat.c
+++ b/src/mesa/main/texformat.c
@@ -1351,14 +1351,13 @@ _mesa_choose_tex_format( GLcontext *ctx, GLint internalFormat,
/**
- * Return datatype and number of components per texel for the
- * given gl_texture_format.
+ * Return datatype and number of components per texel for the given gl_format.
*/
void
-_mesa_format_to_type_and_comps(const struct gl_texture_format *format,
+_mesa_format_to_type_and_comps(gl_format format,
GLenum *datatype, GLuint *comps)
{
- switch (format->MesaFormat) {
+ switch (format) {
case MESA_FORMAT_RGBA8888:
case MESA_FORMAT_RGBA8888_REV:
case MESA_FORMAT_ARGB8888: