aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/debugger/graphics/graphics_surface.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-12-19 12:52:32 +1100
committerDavid Marcec <dmarcecguzman@gmail.com>2018-12-19 12:52:32 +1100
commit1dfb0a513a7bad3eae2c341cdae7d23fd9929500 (patch)
tree82bf8e6a7cd1dd344c9bb0b3a728fc17c38de629 /src/yuzu/debugger/graphics/graphics_surface.cpp
parent4e57c35bdc297cfc881b7bcf6780c7cfccd6ec7d (diff)
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/yuzu/debugger/graphics/graphics_surface.cpp')
-rw-r--r--src/yuzu/debugger/graphics/graphics_surface.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/yuzu/debugger/graphics/graphics_surface.cpp b/src/yuzu/debugger/graphics/graphics_surface.cpp
index 7077474228..2097985211 100644
--- a/src/yuzu/debugger/graphics/graphics_surface.cpp
+++ b/src/yuzu/debugger/graphics/graphics_surface.cpp
@@ -30,6 +30,7 @@ static Tegra::Texture::TextureFormat ConvertToTextureFormat(
return Tegra::Texture::TextureFormat::A2B10G10R10;
default:
UNIMPLEMENTED_MSG("Unimplemented RT format");
+ return Tegra::Texture::TextureFormat::A8R8G8B8;
}
}