On 25 May 2016 at 10:51, Józef Kucia jkucia@codeweavers.com wrote:
- static const DWORD ps_breakc_nz_code[] =
- {
+#if 0
uint bits;float4 main() : SV_TARGET{uint counter = 0;for (uint i = 0; i < 255; ++i)++counter;if (counter == 255)return float4(0.0f, 1.0f, 0.0f, 1.0f);elsereturn float4(1.0f, 0.0f, 0.0f, 1.0f);}+#endif
It's pretty minor, but "bits" is unused. I'll also note that a sufficiently smart compiler could optimise the shader down to "return float4(0.0f, 1.0f, 0.0f, 1.0f);", although clearly the current version hasn't.