Skip to content

Commit

Permalink
Fix MSVC 'performance' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Nov 23, 2015
1 parent 7068f5e commit 340fa8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/graphics/Renderer.h
Expand Up @@ -129,7 +129,7 @@ class RenderState {
}

bool getFog() const {
return get<Fog, 1>();
return get<Fog, 1>() != 0;
}

void setColorKey(bool enable) {
Expand All @@ -143,7 +143,7 @@ class RenderState {
}

bool getColorKey() const {
return get<ColorKey, 1>();
return get<ColorKey, 1>() != 0;
}

void setDepthTest(bool enable) {
Expand All @@ -157,7 +157,7 @@ class RenderState {
}

bool getDepthTest() const {
return get<DepthTest, 1>();
return get<DepthTest, 1>() != 0;
}

void setDepthWrite(bool enable) {
Expand All @@ -171,7 +171,7 @@ class RenderState {
}

bool getDepthWrite() const {
return get<DepthWrite, 1>();
return get<DepthWrite, 1>() != 0;
}

void setDepthOffset(unsigned offset) {
Expand Down

0 comments on commit 340fa8a

Please sign in to comment.