projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffa1a1d
)
st/mesa: used _mesa_num_tex_faces() in st_finalize_texture()
author
Brian Paul
<brianp@vmware.com>
Tue, 16 Feb 2016 17:22:32 +0000
(10:22 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 16 Feb 2016 17:22:32 +0000
(10:22 -0700)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_cb_texture.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_texture.c
b/src/mesa/state_tracker/st_cb_texture.c
index a4c4648c484bbcc34af0fbd895261ab724456ff3..09ff4c12f2a70efb1eb1810f258f064a68d1ddf0 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_texture.c
+++ b/
src/mesa/state_tracker/st_cb_texture.c
@@
-2739,7
+2739,7
@@
st_finalize_texture(struct gl_context *ctx,
{
struct st_context *st = st_context(ctx);
struct st_texture_object *stObj = st_texture_object(tObj);
- const GLuint nr_faces =
(stObj->base.Target == GL_TEXTURE_CUBE_MAP) ? 6 : 1
;
+ const GLuint nr_faces =
_mesa_num_tex_faces(stObj->base.Target)
;
GLuint face;
const struct st_texture_image *firstImage;
enum pipe_format firstImageFormat;