summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-12-21 14:12:54 -0500
committerGravatar GitHub2018-12-21 14:12:54 -0500
commite75e8b9580581d1258154d51ac03893386a500e5 (patch)
tree625619fea43e1340d39132f660a476c291974860 /src/video_core/gpu.cpp
parentMerge pull request #1920 from heapo/texture_format_selection (diff)
parenthopefully fix clang format issue (diff)
downloadyuzu-e75e8b9580581d1258154d51ac03893386a500e5.tar.gz
yuzu-e75e8b9580581d1258154d51ac03893386a500e5.tar.xz
yuzu-e75e8b9580581d1258154d51ac03893386a500e5.zip
Merge pull request #1921 from ogniK5377/no-unit
Fixed uninitialized memory due to missing returns in canary
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