mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
renderer_opengl: Remove C casts
This commit is contained in:
parent
3a44faff11
commit
dee7844443
|
@ -416,12 +416,13 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
// Set projection matrix
|
// Set projection matrix
|
||||||
std::array<GLfloat, 3 * 2> ortho_matrix =
|
const std::array ortho_matrix =
|
||||||
MakeOrthographicMatrix((float)layout.width, (float)layout.height);
|
MakeOrthographicMatrix(static_cast<float>(layout.width), static_cast<float>(layout.height));
|
||||||
glUniformMatrix3x2fv(ModelViewMatrixLocation, 1, GL_FALSE, ortho_matrix.data());
|
glUniformMatrix3x2fv(ModelViewMatrixLocation, 1, GL_FALSE, ortho_matrix.data());
|
||||||
|
|
||||||
DrawScreenTriangles(screen_info, (float)screen.left, (float)screen.top,
|
DrawScreenTriangles(screen_info, static_cast<float>(screen.left),
|
||||||
(float)screen.GetWidth(), (float)screen.GetHeight());
|
static_cast<float>(screen.top), static_cast<float>(screen.GetWidth()),
|
||||||
|
static_cast<float>(screen.GetHeight()));
|
||||||
|
|
||||||
m_current_frame++;
|
m_current_frame++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue