st/nine: Fix D3DPMISCCAPS_FOGANDSPECULARALPHA support

Graphics / Mesa 3D Graphics Library / Mesa - Axel Davy [ens.fr] - 4 February 2016 15:12 UTC

The documentation of the flag doesn't make sense. To sum up the doc, if not set, specular alpha contains fog, and if set specular alpha contains 0 (except for ff).

However in practice when the flag is there, apps do use specular alpha as if it could be used normally, which makes much more sense than the doc.

dbb03f6 st/nine: Fix D3DPMISCCAPS_FOGANDSPECULARALPHA support
src/gallium/state_trackers/nine/adapter9.c | 2 +-
src/gallium/state_trackers/nine/nine_shader.c | 12 +-----------
2 files changed, 2 insertions(+), 12 deletions(-)

Upstream: cgit.freedesktop.org


  • Share