summaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2015-05-06 21:45:10 -0400
committerGravatar bunnei2015-05-09 22:12:35 -0400
commit44927f03061a8703a2b2c4411d367a5a8047d18a (patch)
treef088965397d2dab8bd0eb89c1d4fa4580858756d /src/video_core/rasterizer.cpp
parentvertex_shader: Implement FLR instruction. (diff)
downloadyuzu-44927f03061a8703a2b2c4411d367a5a8047d18a.tar.gz
yuzu-44927f03061a8703a2b2c4411d367a5a8047d18a.tar.xz
yuzu-44927f03061a8703a2b2c4411d367a5a8047d18a.zip
rasterizer: Return zero'd vectors on error conditions.
Diffstat (limited to 'src/video_core/rasterizer.cpp')
-rw-r--r--src/video_core/rasterizer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index 3b3fef484..3b36afad9 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -90,7 +90,7 @@ static const Math::Vec4<u8> GetPixel(int x, int y) {
90 UNIMPLEMENTED(); 90 UNIMPLEMENTED();
91 } 91 }
92 92
93 return {}; 93 return {0, 0, 0, 0};
94} 94}
95 95
96static u32 GetDepth(int x, int y) { 96static u32 GetDepth(int x, int y) {
@@ -407,7 +407,7 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0,
407 default: 407 default:
408 LOG_ERROR(HW_GPU, "Unknown color combiner source %d\n", (int)source); 408 LOG_ERROR(HW_GPU, "Unknown color combiner source %d\n", (int)source);
409 UNIMPLEMENTED(); 409 UNIMPLEMENTED();
410 return {}; 410 return {0, 0, 0, 0};
411 } 411 }
412 }; 412 };
413 413
@@ -524,7 +524,7 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0,
524 default: 524 default:
525 LOG_ERROR(HW_GPU, "Unknown color combiner operation %d\n", (int)op); 525 LOG_ERROR(HW_GPU, "Unknown color combiner operation %d\n", (int)op);
526 UNIMPLEMENTED(); 526 UNIMPLEMENTED();
527 return {}; 527 return {0, 0, 0};
528 } 528 }
529 }; 529 };
530 530