diff options
| author | 2017-05-27 18:02:46 -0700 | |
|---|---|---|
| committer | 2017-05-27 18:02:46 -0700 | |
| commit | 6665557ff76cf8a04c025da90cad49dbe02d808d (patch) | |
| tree | 5c227ca57729bdd1b778f98d0fa0204e75b7a5b7 /src | |
| parent | Core: Fix some out-of-style includes (diff) | |
| download | yuzu-6665557ff76cf8a04c025da90cad49dbe02d808d.tar.gz yuzu-6665557ff76cf8a04c025da90cad49dbe02d808d.tar.xz yuzu-6665557ff76cf8a04c025da90cad49dbe02d808d.zip | |
OpenGL: Remove unused RendererOpenGL fields
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 10 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.h | 3 |
2 files changed, 2 insertions, 11 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index e19375466..d90c776f9 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -94,14 +94,8 @@ static std::array<GLfloat, 3 * 2> MakeOrthographicMatrix(const float width, cons | |||
| 94 | return matrix; | 94 | return matrix; |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | /// RendererOpenGL constructor | 97 | RendererOpenGL::RendererOpenGL() = default; |
| 98 | RendererOpenGL::RendererOpenGL() { | 98 | RendererOpenGL::~RendererOpenGL() = default; |
| 99 | resolution_width = std::max(VideoCore::kScreenTopWidth, VideoCore::kScreenBottomWidth); | ||
| 100 | resolution_height = VideoCore::kScreenTopHeight + VideoCore::kScreenBottomHeight; | ||
| 101 | } | ||
| 102 | |||
| 103 | /// RendererOpenGL destructor | ||
| 104 | RendererOpenGL::~RendererOpenGL() {} | ||
| 105 | 99 | ||
| 106 | /// Swap buffers (render frame) | 100 | /// Swap buffers (render frame) |
| 107 | void RendererOpenGL::SwapBuffers() { | 101 | void RendererOpenGL::SwapBuffers() { |
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h index 87c556cff..0b4f69e8f 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.h +++ b/src/video_core/renderer_opengl/renderer_opengl.h | |||
| @@ -68,9 +68,6 @@ private: | |||
| 68 | 68 | ||
| 69 | EmuWindow* render_window; ///< Handle to render window | 69 | EmuWindow* render_window; ///< Handle to render window |
| 70 | 70 | ||
| 71 | int resolution_width; ///< Current resolution width | ||
| 72 | int resolution_height; ///< Current resolution height | ||
| 73 | |||
| 74 | OpenGLState state; | 71 | OpenGLState state; |
| 75 | 72 | ||
| 76 | // OpenGL object IDs | 73 | // OpenGL object IDs |