diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 8ccf1f1d9..18b7e50f5 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -2615,7 +2615,7 @@ namespace bgfx uint8_t type; bx::read(&reader, type); - type &= ~BGFX_UNIFORM_FRAGMENTBIT; + type &= ~BGFX_UNIFORM_MASK; uint8_t num; bx::read(&reader, num);