mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
st/xorg: Fix bad paramf.
Should be an integer param, according to docs.
This commit is contained in:
parent
d2cf1e85c8
commit
8ddb4e2c81
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue