Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #818 from ChuckRozhon/videocommon_bool_warnings
Removed warnings by assigning to bool
  • Loading branch information
lioncash committed Aug 16, 2014
2 parents 07f72b1 + 6f34a8a commit bc1d905
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/VideoCommon/BPFunctions.cpp
Expand Up @@ -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
Expand Down

0 comments on commit bc1d905

Please sign in to comment.