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

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2018-12-04 21:42:34 +01:00 committed by Alexandre Julliard
parent 5b9dbd9242
commit e9231beb86
1 changed files with 2 additions and 0 deletions

View File

@ -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)