OSDN Git Service

texenvprogram: Mark textures using ARB_shadow as ShadowSamplers
authorNicolai Haehnle <nhaehnle@gmail.com>
Sat, 14 Jun 2008 00:28:58 +0000 (02:28 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sat, 14 Jun 2008 02:15:31 +0000 (04:15 +0200)
commit83ad2a756ea8dd1b0ca9746e355ce3de0f29356e
treed48cd3208a3de8909dae1f5f6b7e411f962a4605
parent2882e5162525138316db9a1ab539a17498d06da1
texenvprogram: Mark textures using ARB_shadow as ShadowSamplers

Since ARB_fragment_program and friends are defined to ignore the setting of
the GL_TEXTURE_COMPARE_FUNC parameter, we have to explicitly enable the
shadow comparison by marking the texture unit in ShadowSamplers when
appropriate.
src/mesa/main/texenvprogram.c