aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/surface.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-12 21:44:20 -0500
committerGitHub <noreply@github.com>2019-02-12 21:44:20 -0500
commitcd407829229199a5e7a4b210e4fda5d30fefdf63 (patch)
tree3e9b7ff5fe6f56e7ae492f776a6c5a9e3785c7ab /src/video_core/surface.cpp
parenta67aca0ef2be3c97a327acd23494407af4979580 (diff)
parentb4603fafcb1c89d64d001af10ffe028618c5615b (diff)
Merge pull request #2099 from greggameplayer/BGRA8-Framebuffer-Real
Implement BGRA8 framebuffer format
Diffstat (limited to 'src/video_core/surface.cpp')
-rw-r--r--src/video_core/surface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp
index 2f6612a352..044ba116ad 100644
--- a/src/video_core/surface.cpp
+++ b/src/video_core/surface.cpp
@@ -426,6 +426,8 @@ PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat
switch (format) {
case Tegra::FramebufferConfig::PixelFormat::ABGR8:
return PixelFormat::ABGR8U;
+ case Tegra::FramebufferConfig::PixelFormat::BGRA8:
+ return PixelFormat::BGRA8;
default:
LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
UNREACHABLE();