diff options
| author | 2014-04-18 17:52:49 -0400 | |
|---|---|---|
| committer | 2014-04-18 17:52:49 -0400 | |
| commit | 958bca606e80110e05d7c142dda3097fddc96503 (patch) | |
| tree | 576917751444b4dfdb476d040b4e075bde431b7b /src/video_core | |
| parent | Init window size from VideoCore. Start changing the default window behavior... (diff) | |
| parent | renamed hw_lcd module to just lcd (diff) | |
| download | yuzu-958bca606e80110e05d7c142dda3097fddc96503.tar.gz yuzu-958bca606e80110e05d7c142dda3097fddc96503.tar.xz yuzu-958bca606e80110e05d7c142dda3097fddc96503.zip | |
Merge branch 'hle-interface'
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 8 | ||||
| -rw-r--r-- | src/video_core/video_core.cpp | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 97f84c248..35804aee1 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | // Licensed under GPLv2 | 2 | // Licensed under GPLv2 |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "core/hw/lcd.h" | ||
| 6 | |||
| 5 | #include "video_core/video_core.h" | 7 | #include "video_core/video_core.h" |
| 6 | #include "video_core/renderer_opengl/renderer_opengl.h" | 8 | #include "video_core/renderer_opengl/renderer_opengl.h" |
| 7 | 9 | ||
| @@ -75,8 +77,8 @@ void RendererOpenGL::FlipFramebuffer(u32 addr, u8* out) { | |||
| 75 | */ | 77 | */ |
| 76 | void RendererOpenGL::RenderXFB(const Rect& src_rect, const Rect& dst_rect) { | 78 | void RendererOpenGL::RenderXFB(const Rect& src_rect, const Rect& dst_rect) { |
| 77 | 79 | ||
| 78 | FlipFramebuffer(0x20282160, m_xfb_top_flipped); | 80 | FlipFramebuffer(LCD::TOP_RIGHT_FRAME1, m_xfb_top_flipped); |
| 79 | FlipFramebuffer(0x202118E0, m_xfb_bottom_flipped); | 81 | FlipFramebuffer(LCD::SUB_FRAME1, m_xfb_bottom_flipped); |
| 80 | 82 | ||
| 81 | // Blit the top framebuffer | 83 | // Blit the top framebuffer |
| 82 | // ------------------------ | 84 | // ------------------------ |
| @@ -84,7 +86,7 @@ void RendererOpenGL::RenderXFB(const Rect& src_rect, const Rect& dst_rect) { | |||
| 84 | // Update textures with contents of XFB in RAM - top | 86 | // Update textures with contents of XFB in RAM - top |
| 85 | glBindTexture(GL_TEXTURE_2D, m_xfb_texture_top); | 87 | glBindTexture(GL_TEXTURE_2D, m_xfb_texture_top); |
| 86 | glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, VideoCore::kScreenTopWidth, VideoCore::kScreenTopHeight, | 88 | glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, VideoCore::kScreenTopWidth, VideoCore::kScreenTopHeight, |
| 87 | GL_RGB, GL_UNSIGNED_BYTE, m_xfb_top_flipped); | 89 | GL_BGR, GL_UNSIGNED_BYTE, m_xfb_top_flipped); |
| 88 | glBindTexture(GL_TEXTURE_2D, 0); | 90 | glBindTexture(GL_TEXTURE_2D, 0); |
| 89 | 91 | ||
| 90 | // Render target is destination framebuffer | 92 | // Render target is destination framebuffer |
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp index e227b6795..f2e17f9f9 100644 --- a/src/video_core/video_core.cpp +++ b/src/video_core/video_core.cpp | |||
| @@ -38,12 +38,13 @@ void Init(EmuWindow* emu_window) { | |||
| 38 | 38 | ||
| 39 | g_current_frame = 0; | 39 | g_current_frame = 0; |
| 40 | 40 | ||
| 41 | NOTICE_LOG(VIDEO, "initialized ok"); | 41 | NOTICE_LOG(VIDEO, "initialized OK"); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | /// Shutdown the video core | 44 | /// Shutdown the video core |
| 45 | void Shutdown() { | 45 | void Shutdown() { |
| 46 | delete g_renderer; | 46 | delete g_renderer; |
| 47 | NOTICE_LOG(VIDEO, "shutdown OK"); | ||
| 47 | } | 48 | } |
| 48 | 49 | ||
| 49 | } // namespace | 50 | } // namespace |