Commit e9231beb authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Add an assert checking for writemask sanity in debug_writemask().

parent 5b9dbd92
......@@ -2142,6 +2142,8 @@ static const char *debug_writemask(DWORD writemask)
char string[5];
unsigned int i = 0, pos = 0;
assert(!(writemask & ~BWRITERSP_WRITEMASK_ALL));
while (writemask)
{
if (writemask & 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment