summaryrefslogtreecommitdiffstats
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
authorApology11 <apology11@gmail.com>2014-12-21 18:34:20 +0100
committerApology11 <apology11@gmail.com>2014-12-21 18:34:20 +0100
commit8d81e23d6ea998fcd4f6045160b0f9fa89d64c9d (patch)
treea3de7cf5d7ae64cf546d1adb659dac82c6303fee /src/video_core/vertex_shader.cpp
parentUpdate README.md (diff)
downloadyuzu-8d81e23d6ea998fcd4f6045160b0f9fa89d64c9d.tar
yuzu-8d81e23d6ea998fcd4f6045160b0f9fa89d64c9d.tar.gz
yuzu-8d81e23d6ea998fcd4f6045160b0f9fa89d64c9d.tar.bz2
yuzu-8d81e23d6ea998fcd4f6045160b0f9fa89d64c9d.tar.lz
yuzu-8d81e23d6ea998fcd4f6045160b0f9fa89d64c9d.tar.xz
yuzu-8d81e23d6ea998fcd4f6045160b0f9fa89d64c9d.tar.zst
yuzu-8d81e23d6ea998fcd4f6045160b0f9fa89d64c9d.zip
Diffstat (limited to 'src/video_core/vertex_shader.cpp')
-rw-r--r--src/video_core/vertex_shader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index 4ba69fa51..859b4836d 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -160,8 +160,8 @@ static void ProcessShaderCode(VertexShaderState& state) {
const float24* src1_ = LookupSourceRegister(instr.common.GetSrc1(is_inverted) + address_offset);
const float24* src2_ = LookupSourceRegister(instr.common.GetSrc2(is_inverted));
- const bool negate_src1 = (swizzle.negate_src1 != false);
- const bool negate_src2 = (swizzle.negate_src2 != false);
+ const bool negate_src1 = ((bool)swizzle.negate_src1 != false);
+ const bool negate_src2 = ((bool)swizzle.negate_src2 != false);
float24 src1[4] = {
src1_[(int)swizzle.GetSelectorSrc1(0)],
@@ -385,8 +385,8 @@ static void ProcessShaderCode(VertexShaderState& state) {
// TODO: Do we need to consider swizzlers here?
auto flow_control = instr.flow_control;
- bool results[3] = { flow_control.refx == state.conditional_code[0],
- flow_control.refy == state.conditional_code[1] };
+ bool results[3] = { (bool)flow_control.refx == state.conditional_code[0],
+ (bool)flow_control.refy == state.conditional_code[1] };
switch (flow_control.op) {
case flow_control.Or: