Am Donnerstag, 7. Juni 2007 01:16 schrieb Phil Costin:
Test CheckDeviceFormat returns correctly for D3DUSAGE_QUERY_SRGBREAD queries.
This test will fail on any card that doesn't support sRGB at all.
What would be more useful is to find out what assertion hl2 makes, ie if D3DFMT_X8R8G8B8 is supported, then D3DFMT_L8 and D3DFMT_A8L8 are supported too. No idea how this really looks like.
Another idea would be to set up a table of formats that are found supported on some cards, and complain if a format that is known NOT to be supported(like Q8W8V8U8) is found supported - see the query test for an example.