mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-19 09:48:14 +00:00
Build with -Wfloat-conversion + fix all warnings
This commit is contained in:

committed by
GitHub

parent
17c459e384
commit
a919774fe4
@@ -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);
|
||||
|
Reference in New Issue
Block a user