diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-20 05:51:16 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-25 02:13:33 +0100 |
commit | ca12a77670d1463c2257bcdd829bb9bc56f1461b (patch) | |
tree | 8c6f7781383232909584d65e982376cb2e7ecd46 /src/video_core/renderer_opengl/renderer_opengl.cpp | |
parent | hle: nvflinger: BufferQueueProducer: Handle SetPreallocatedBuffer with empty buffer. (diff) | |
download | yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.gz yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.bz2 yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.lz yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.xz yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.zst yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/renderer_opengl.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 279421962..f8f29013a 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -323,12 +323,12 @@ void RendererOpenGL::ConfigureFramebufferTexture(TextureInfo& texture, GLint internal_format; switch (framebuffer.pixel_format) { - case android::PixelFormat::Rgba8888: + case Service::android::PixelFormat::Rgba8888: internal_format = GL_RGBA8; texture.gl_format = GL_RGBA; texture.gl_type = GL_UNSIGNED_INT_8_8_8_8_REV; break; - case android::PixelFormat::Rgb565: + case Service::android::PixelFormat::Rgb565: internal_format = GL_RGB565; texture.gl_format = GL_RGB; texture.gl_type = GL_UNSIGNED_SHORT_5_6_5; @@ -464,8 +464,8 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { const auto& texcoords = screen_info.display_texcoords; auto left = texcoords.left; auto right = texcoords.right; - if (framebuffer_transform_flags != android::BufferTransformFlags::Unset) { - if (framebuffer_transform_flags == android::BufferTransformFlags::FlipV) { + if (framebuffer_transform_flags != Service::android::BufferTransformFlags::Unset) { + if (framebuffer_transform_flags == Service::android::BufferTransformFlags::FlipV) { // Flip the framebuffer vertically left = texcoords.right; right = texcoords.left; |