Hi there!
Check this out:
Code:
m4xMsaaQuality = msQualityLevels.NumQualityLevels;
assert(m4xMsaaQuality > 0 && "Unexpected MSAA quality level.");
The variable m4xMsaaQuality is just an unsigned integer that records the available quality levels for a given display adapter and specified format. Just a number.
And it should be above zero. So I can understand the first part of the assert condition, but just not the second part with the string? It looks to me like the string is just a temporary variable created there and then and isn't even linked to a defined variable so I don't understand what checking it is doing?
Surely if I just create a temp variable like that in a condition check it will always simply return as true because it exists?
Thanks