summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2010-04-09 03:38:23 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2010-04-09 03:40:11 -0700
commit8ddb4e2c81c88c9320ed7fb75464e0b37f4d4536 (patch)
tree9b8e2d0f612e8c697d975c1f147caf3229f17d83 /src/gallium
parentd2cf1e85c88890b60fdfa1b0236a90bb6916d267 (diff)
st/xorg: Fix bad paramf.
Should be an integer param, according to docs.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_driver.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c
index 8ac5179545..d5dd0d761d 100644
--- a/src/gallium/state_trackers/xorg/xorg_driver.c
+++ b/src/gallium/state_trackers/xorg/xorg_driver.c
@@ -676,10 +676,8 @@ drv_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
}
if (ms->screen) {
- float maxf;
int max;
- maxf = ms->screen->get_paramf(ms->screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS);
- max = (1 << (int)(maxf - 1.0f));
+ max = ms->screen->get_param(ms->screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS);
max_width = max < max_width ? max : max_width;
max_height = max < max_height ? max : max_height;
}