diff options
author | Corbin Simpson <[email protected]> | 2010-04-09 06:48:04 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-04-09 06:52:18 -0700 |
commit | 51c40680518b0d76d2eae373a474392d18be05d7 (patch) | |
tree | 2f8e4aba43d565cea0fc0bab93f81a5fc47b0e3d /src/gallium | |
parent | 54526154c5b02be0fbae6b0dad766c6be1bee21c (diff) |
st/xorg: Fix thinko.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c index d5dd0d761d0..a59e8dcad51 100644 --- a/src/gallium/state_trackers/xorg/xorg_driver.c +++ b/src/gallium/state_trackers/xorg/xorg_driver.c @@ -678,6 +678,7 @@ drv_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) if (ms->screen) { int max; max = ms->screen->get_param(ms->screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS); + max = 1 << (max - 1); max_width = max < max_width ? max : max_width; max_height = max < max_height ? max : max_height; } |