landmann

DX9: sRGB write-enabled clearing fails in case AA is enabled

Discussion created by landmann on Jul 5, 2010
Latest reply on Sep 15, 2010 by dimple

Without AA enabled a RT clear with D3DRS_SRGBWRITEENABLE set to TRUE does what one expects, clearing the RT with the proper sRGB value.

With AA enabled this does not work. Why?

What trick is needed to activate it without using a custom pixel shader?

 PS: Of course simple to reproduce , just toggle the SRGBWRITEENABLE RS before any clear call in one of the simple DX9 samples. You see a nice background flickering which vanishes once AA is enabled.

Outcomes