From b6a01ae65ddf1a5c7f041e3a939873245abdeddb Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Mon, 8 Feb 2021 07:30:40 +0100 Subject: [PATCH] early-access version 1426 --- README.md | 2 +- src/video_core/renderer_opengl/gl_texture_cache.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 12211d766..a4b9415eb 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 1425. +This is the source code for early-access 1426. ## Legal Notice diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index 6c7688135..fdc040f89 100755 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp @@ -396,10 +396,9 @@ void AttachTexture(GLuint fbo, GLenum attachment, const ImageView* image_view) { } } -[[nodiscard]] bool IsPixelFormatBGRA(PixelFormat format) { +[[nodiscard]] bool IsPixelFormatBGR(PixelFormat format) { switch (format) { case PixelFormat::B5G6R5_UNORM: - case PixelFormat::B10G11R11_FLOAT: case PixelFormat::B8G8R8A8_UNORM: case PixelFormat::B8G8R8A8_SRGB: return true; @@ -957,7 +956,7 @@ void ImageView::SetupView(const Device& device, Image& image, ImageViewType view view_range.extent.levels, view_range.base.layer, view_range.extent.layers); if (!info.IsRenderTarget()) { auto swizzle = info.Swizzle(); - if (IsPixelFormatBGRA(image.info.format)) { + if (IsPixelFormatBGR(image.info.format)) { // Swap the R and B channels of the swizzle. std::swap(swizzle[0], swizzle[2]); }