diff options
Diffstat (limited to 'src/gallium/state_trackers/osmesa/osmesa.c')
-rw-r--r-- | src/gallium/state_trackers/osmesa/osmesa.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/osmesa/osmesa.c b/src/gallium/state_trackers/osmesa/osmesa.c index e7e0ab13acb..e70c391a905 100644 --- a/src/gallium/state_trackers/osmesa/osmesa.c +++ b/src/gallium/state_trackers/osmesa/osmesa.c @@ -885,9 +885,7 @@ OSMesaGetIntegerv(GLint pname, GLint *value) case OSMESA_MAX_HEIGHT: { struct pipe_screen *screen = get_st_manager()->screen; - int maxLevels = screen->get_param(screen, - PIPE_CAP_MAX_TEXTURE_2D_LEVELS); - *value = 1 << (maxLevels - 1); + *value = screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_2D_SIZE); } return; default: |