summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_texture.c
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-12-03 11:58:36 +0100
committerMichal Krol <[email protected]>2009-12-03 11:58:36 +0100
commitf5bd93fae2e4f46665eb1f09ca64cb39ff2b8a79 (patch)
tree2389d913bcd736d2d17a64189550b00ef68e1033 /src/mesa/state_tracker/st_texture.c
parentcceeab39ea541b1be1521114316d660a77769c2a (diff)
Move pf_get_component_bits() to u_format auxiliary module.
Diffstat (limited to 'src/mesa/state_tracker/st_texture.c')
-rw-r--r--src/mesa/state_tracker/st_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c
index bd6ee5d71c6..b1b515b28a6 100644
--- a/src/mesa/state_tracker/st_texture.c
+++ b/src/mesa/state_tracker/st_texture.c
@@ -406,7 +406,7 @@ st_bind_texture_surface(struct pipe_surface *ps, int target, int level,
}
/* map pipe format to base format for now */
- if (pf_get_component_bits(format, PIPE_FORMAT_COMP_A) > 0)
+ if (util_format_get_component_bits(format, UTIL_FORMAT_COLORSPACE_RGB, 3) > 0)
internalFormat = GL_RGBA;
else
internalFormat = GL_RGB;