diff options
author | Dave Airlie <[email protected]> | 2013-04-07 14:29:59 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2013-04-08 23:56:06 +0100 |
commit | d0bf48f8e99ccb4a6ab2b963e6a88e104e7ae5d8 (patch) | |
tree | cc98529c0963bb1a1e19e2269c6fd21cbf994ba0 | |
parent | 58d93e324718a5a54f7e12b83d58ff5535be1c9c (diff) |
st/mesa: fix levels in initial texture creation
calim pointed out we were getting mipmap levels for array multisamples,
this didn't make sense. So then I noticed this function takes last_level
so we are passing in a too high value here.
I think this should fix the case he was seeing.
Reviewed-by: Brian Paul <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 0cd0d77af22..2d16920a8c8 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -1662,7 +1662,7 @@ st_AllocTextureStorage(struct gl_context *ctx, stObj->pt = st_texture_create(st, gl_target_to_pipe(texObj->Target), fmt, - levels, + levels - 1, ptWidth, ptHeight, ptDepth, |