diff options
| author | 2019-11-28 20:28:27 -0300 | |
|---|---|---|
| committer | 2019-11-28 20:28:27 -0300 | |
| commit | dee784444359236c5adc123c90ea03b573cd6782 (patch) | |
| tree | 46de34c1fd0f865ca3475628bc8246f448c02c31 /src | |
| parent | renderer_opengl: Use explicit binding for presentation shaders (diff) | |
| download | yuzu-dee784444359236c5adc123c90ea03b573cd6782.tar.gz yuzu-dee784444359236c5adc123c90ea03b573cd6782.tar.xz yuzu-dee784444359236c5adc123c90ea03b573cd6782.zip | |
renderer_opengl: Remove C casts
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 9 |
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) { | |||
| 416 | glClear(GL_COLOR_BUFFER_BIT); | 416 | glClear(GL_COLOR_BUFFER_BIT); |
| 417 | 417 | ||
| 418 | // Set projection matrix | 418 | // Set projection matrix |
| 419 | std::array<GLfloat, 3 * 2> ortho_matrix = | 419 | const std::array ortho_matrix = |
| 420 | MakeOrthographicMatrix((float)layout.width, (float)layout.height); | 420 | MakeOrthographicMatrix(static_cast<float>(layout.width), static_cast<float>(layout.height)); |
| 421 | glUniformMatrix3x2fv(ModelViewMatrixLocation, 1, GL_FALSE, ortho_matrix.data()); | 421 | glUniformMatrix3x2fv(ModelViewMatrixLocation, 1, GL_FALSE, ortho_matrix.data()); |
| 422 | 422 | ||
| 423 | DrawScreenTriangles(screen_info, (float)screen.left, (float)screen.top, | 423 | DrawScreenTriangles(screen_info, static_cast<float>(screen.left), |
| 424 | (float)screen.GetWidth(), (float)screen.GetHeight()); | 424 | static_cast<float>(screen.top), static_cast<float>(screen.GetWidth()), |
| 425 | static_cast<float>(screen.GetHeight())); | ||
| 425 | 426 | ||
| 426 | m_current_frame++; | 427 | m_current_frame++; |
| 427 | } | 428 | } |