summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_setup.c
diff options
context:
space:
mode:
authorChris Forbes <[email protected]>2013-12-08 19:04:40 +1300
committerChris Forbes <[email protected]>2013-12-14 16:32:41 +1300
commit8bb666cee30ec8e38f6a22c1d17216deda272bbc (patch)
tree99c9dd65dfc6df7c7af5fe9eab9144bffcc82531 /src/gallium/drivers/llvmpipe/lp_setup.c
parent544869377d6ec8c150d4d91d17a01f22cd84d479 (diff)
mesa: fix texture view use of _mesa_get_tex_image()
The target parameter to _mesa_get_tex_image() is a target enum, not an index. When we're setting up faces for a cubemap, it should be CUBE_MAP_POSITIVE_X .. CUBE_MAP_NEGATIVE_Z; for all other targets it should be the same as the texobj's target. Fixes broken cubemaps [had only +X face but claimed to have all] produced by glTextureView, which then caused various crashes in the driver when we tried to use them. Signed-off-by: Chris Forbes <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.c')
0 files changed, 0 insertions, 0 deletions