Fix warnings

This commit is contained in:
Sylvain 2021-04-01 20:27:22 +02:00 committed by Sylvain Becker
parent 6e47f53869
commit 32e7910135
2 changed files with 3 additions and 3 deletions

View File

@ -1490,10 +1490,10 @@ D3D_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *verti
const size_t first = cmd->data.draw.first;
SetDrawState(data, cmd);
if (vbo) {
IDirect3DDevice9_DrawPrimitive(data->device, D3DPT_TRIANGLELIST, (UINT) (first / sizeof (Vertex)), count);
IDirect3DDevice9_DrawPrimitive(data->device, D3DPT_TRIANGLELIST, (UINT) (first / sizeof (Vertex)), (UINT) count);
} else {
const Vertex* verts = (Vertex*)(((Uint8*)vertices) + first);
IDirect3DDevice9_DrawPrimitiveUP(data->device, D3DPT_TRIANGLELIST, count, verts, sizeof(Vertex));
IDirect3DDevice9_DrawPrimitiveUP(data->device, D3DPT_TRIANGLELIST, (UINT) count, verts, sizeof(Vertex));
}
break;
}

View File

@ -1399,7 +1399,7 @@ GLES2_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *ver
}
if (ret == 0) {
data->glDrawArrays(GL_TRIANGLES, 0, count);
data->glDrawArrays(GL_TRIANGLES, 0, (GLsizei) count);
}
break;
}