summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-11-29 00:28:27 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-11-29 00:28:27 +0100
commitdee784444359236c5adc123c90ea03b573cd6782 (patch)
tree46de34c1fd0f865ca3475628bc8246f448c02c31 /src/video_core
parentrenderer_opengl: Use explicit binding for presentation shaders (diff)
downloadyuzu-dee784444359236c5adc123c90ea03b573cd6782.tar
yuzu-dee784444359236c5adc123c90ea03b573cd6782.tar.gz
yuzu-dee784444359236c5adc123c90ea03b573cd6782.tar.bz2
yuzu-dee784444359236c5adc123c90ea03b573cd6782.tar.lz
yuzu-dee784444359236c5adc123c90ea03b573cd6782.tar.xz
yuzu-dee784444359236c5adc123c90ea03b573cd6782.tar.zst
yuzu-dee784444359236c5adc123c90ea03b573cd6782.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 9e66dea60..aa837eb95 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -416,12 +416,13 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {
glClear(GL_COLOR_BUFFER_BIT);
// Set projection matrix
- std::array<GLfloat, 3 * 2> ortho_matrix =
- MakeOrthographicMatrix((float)layout.width, (float)layout.height);
+ const std::array ortho_matrix =
+ MakeOrthographicMatrix(static_cast<float>(layout.width), static_cast<float>(layout.height));
glUniformMatrix3x2fv(ModelViewMatrixLocation, 1, GL_FALSE, ortho_matrix.data());
- DrawScreenTriangles(screen_info, (float)screen.left, (float)screen.top,
- (float)screen.GetWidth(), (float)screen.GetHeight());
+ DrawScreenTriangles(screen_info, static_cast<float>(screen.left),
+ static_cast<float>(screen.top), static_cast<float>(screen.GetWidth()),
+ static_cast<float>(screen.GetHeight()));
m_current_frame++;
}