Browse Source

gpu: fix an annoying Visual Studio warning in renderer.h.

undefined
Sam Hocevar 10 years ago
parent
commit
1a19fe393e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/lol/gpu/renderer.h

+ 1
- 1
src/lol/gpu/renderer.h View File

@@ -40,7 +40,7 @@ static inline ClearMask operator |(ClearMask const &a, ClearMask const &b)

static inline bool operator &(ClearMask const &a, ClearMask const &b)
{
return (bool)((uint8_t)a & (uint8_t)b);
return !!((uint8_t)a & (uint8_t)b);
}

/* A safe enum to indicate the blend equation. */


Loading…
Cancel
Save