mesa: pass target through to driver when choosing texture format
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 6 May 2014 06:51:45 +0000 (02:51 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 8 May 2014 00:40:46 +0000 (20:40 -0400)
commit9d95d64be0893a18922da75d2625235ae410d3ab
treec9c74466c218ec56500c0ea1e41663ed6a1cd35d
parente7047f2917c6bcc714fc6a350ea74e45b0760a77
mesa: pass target through to driver when choosing texture format

This only matters for TextureView where the texObj's target has not been
set yet, in all other instances, texObj->target should be the same as
the passed-in target parameter.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/teximage.c