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:
parent
5b9dbd9242
commit
e9231beb86
|
@ -2142,6 +2142,8 @@ static const char *debug_writemask(DWORD writemask)
|
||||||
char string[5];
|
char string[5];
|
||||||
unsigned int i = 0, pos = 0;
|
unsigned int i = 0, pos = 0;
|
||||||
|
|
||||||
|
assert(!(writemask & ~BWRITERSP_WRITEMASK_ALL));
|
||||||
|
|
||||||
while (writemask)
|
while (writemask)
|
||||||
{
|
{
|
||||||
if (writemask & 1)
|
if (writemask & 1)
|
||||||
|
|
Loading…
Reference in New Issue