diff options
| author | 2015-05-06 21:45:10 -0400 | |
|---|---|---|
| committer | 2015-05-09 22:12:35 -0400 | |
| commit | 44927f03061a8703a2b2c4411d367a5a8047d18a (patch) | |
| tree | f088965397d2dab8bd0eb89c1d4fa4580858756d /src/video_core/rasterizer.cpp | |
| parent | vertex_shader: Implement FLR instruction. (diff) | |
| download | yuzu-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.cpp | 6 |
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 | ||
| 96 | static u32 GetDepth(int x, int y) { | 96 | static 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 | ||