diff --git a/framework/PVRCore/texture/TextureHeader.h b/framework/PVRCore/texture/TextureHeader.h index 95543777f..489c625b8 100644 --- a/framework/PVRCore/texture/TextureHeader.h +++ b/framework/PVRCore/texture/TextureHeader.h @@ -308,7 +308,7 @@ struct TextureHeader if (isFileCompressed) { flags |= CompressedFlag; } else { - flags &= !static_cast(static_cast(CompressedFlag)); + flags &= ~static_cast(CompressedFlag); } } @@ -319,7 +319,7 @@ struct TextureHeader if (isPreMultiplied) { flags |= PremultipliedFlag; } else { - flags &= !static_cast(static_cast(PremultipliedFlag)); + flags &= ~static_cast(PremultipliedFlag); } }