projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f09a126
)
st/mesa: use _mesa_get_current_tex_object() in st_context_teximage()
author
Brian Paul
<brianp@vmware.com>
Mon, 27 Jan 2014 19:06:39 +0000
(12:06 -0700)
committer
Brian Paul
<brianp@vmware.com>
Sun, 2 Feb 2014 13:47:32 +0000
(06:47 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/state_tracker/st_manager.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_manager.c
b/src/mesa/state_tracker/st_manager.c
index b7757e9fe53f1e90c1a248631d08cf74a651a649..215b27634f5cc581a9cfeea8cf69e989f67aae0d 100644
(file)
--- a/
src/mesa/state_tracker/st_manager.c
+++ b/
src/mesa/state_tracker/st_manager.c
@@
-469,7
+469,6
@@
st_context_teximage(struct st_context_iface *stctxi,
{
struct st_context *st = (struct st_context *) stctxi;
struct gl_context *ctx = st->ctx;
- struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx);
struct gl_texture_object *texObj;
struct gl_texture_image *texImage;
struct st_texture_object *stObj;
@@
-495,7
+494,8
@@
st_context_teximage(struct st_context_iface *stctxi,
return FALSE;
}
- texObj = _mesa_select_tex_object(ctx, texUnit, target);
+ texObj = _mesa_get_current_tex_object(ctx, target);
+
_mesa_lock_texture(ctx, texObj);
stObj = st_texture_object(texObj);