summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorGravatar David Marcec2018-12-19 12:52:32 +1100
committerGravatar David Marcec2018-12-19 12:52:32 +1100
commitfdd649e2ef56ea473e253511d35fe6c10e0fb241 (patch)
tree82bf8e6a7cd1dd344c9bb0b3a728fc17c38de629 /src/video_core/gpu.cpp
parentMerge pull request #1913 from MerryMage/default-fpcr (diff)
downloadyuzu-fdd649e2ef56ea473e253511d35fe6c10e0fb241.tar.gz
yuzu-fdd649e2ef56ea473e253511d35fe6c10e0fb241.tar.xz
yuzu-fdd649e2ef56ea473e253511d35fe6c10e0fb241.zip
Fixed uninitialized memory due to missing returns in canary
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 88c45a423..08cf6268f 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -102,6 +102,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
102 return 1; 102 return 1;
103 default: 103 default:
104 UNIMPLEMENTED_MSG("Unimplemented render target format {}", static_cast<u32>(format)); 104 UNIMPLEMENTED_MSG("Unimplemented render target format {}", static_cast<u32>(format));
105 return 1;
105 } 106 }
106} 107}
107 108
@@ -119,6 +120,7 @@ u32 DepthFormatBytesPerPixel(DepthFormat format) {
119 return 2; 120 return 2;
120 default: 121 default:
121 UNIMPLEMENTED_MSG("Unimplemented Depth format {}", static_cast<u32>(format)); 122 UNIMPLEMENTED_MSG("Unimplemented Depth format {}", static_cast<u32>(format));
123 return 1;
122 } 124 }
123} 125}
124 126