Build with -Wfloat-conversion + fix all warnings

This commit is contained in:
Anonymous Maarten 2024-06-03 23:33:29 +02:00 committed by GitHub
parent 17c459e384
commit a919774fe4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 199 additions and 203 deletions

View file

@ -1047,8 +1047,8 @@ static int SetDrawState(GL_RenderData *data, const SDL_RenderCommand *cmd, const
viewport->w, viewport->h);
if (viewport->w && viewport->h) {
data->glOrtho((GLdouble)0, (GLdouble)viewport->w,
(GLdouble)istarget ? 0 : viewport->h,
(GLdouble)istarget ? viewport->h : 0,
(GLdouble)(istarget ? 0 : viewport->h),
(GLdouble)(istarget ? viewport->h : 0),
0.0, 1.0);
}
data->glMatrixMode(GL_MODELVIEW);