From 6f34a8ac47178a926d1107af5b797ce7c4c55bf9 Mon Sep 17 00:00:00 2001 From: Charles Rozhon Date: Sat, 16 Aug 2014 13:23:22 -0500 Subject: [PATCH] Removed warnings by assigning to bool --- Source/Core/VideoCommon/BPFunctions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp index f903c39917..d2771a7b65 100644 --- a/Source/Core/VideoCommon/BPFunctions.cpp +++ b/Source/Core/VideoCommon/BPFunctions.cpp @@ -120,9 +120,9 @@ void CopyEFB(u32 dstAddr, const EFBRectangle& srcRect, */ void ClearScreen(const EFBRectangle &rc) { - bool colorEnable = bpmem.blendmode.colorupdate; - bool alphaEnable = bpmem.blendmode.alphaupdate; - bool zEnable = bpmem.zmode.updateenable; + bool colorEnable = (bpmem.blendmode.colorupdate != 0); + bool alphaEnable = (bpmem.blendmode.alphaupdate != 0); + bool zEnable = (bpmem.zmode.updateenable != 0); auto pixel_format = bpmem.zcontrol.pixel_format; // (1): Disable unused color channels