wined3d: Use the proper texture target in arbfp_blit_set().
commit86db5b601f77e41d2fedbdf81759b87dc9250f33
authorHenri Verbeet <hverbeet@codeweavers.com>
Tue, 17 Jul 2012 09:40:34 +0000 (17 11:40 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 17 Jul 2012 10:50:21 +0000 (17 12:50 +0200)
tree381afa0102e600f60e9d4f4427583d58ea55ccda
parent80ebe35aa7e9249fea86ec165163d5bdaa04318d
wined3d: Use the proper texture target in arbfp_blit_set().

For cube maps, texture->target is GL_TEXTURE_CUBE_MAP and would be used for
calls that apply to the entire texture, like glTexParameter().
surface->texture_target refers to individual faces like
GL_TEXTURE_CUBE_MAP_POSITIVE_X, etc., and would be used for calls like
glTexImage2D(). What makes this a bit ugly is the fact that surfaces don't
always have an associated texture.
dlls/wined3d/arb_program_shader.c