mirror of https://github.com/encounter/SDL.git
Fix warnings
This commit is contained in:
parent
6e47f53869
commit
32e7910135
|
@ -1490,10 +1490,10 @@ D3D_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *verti
|
||||||
const size_t first = cmd->data.draw.first;
|
const size_t first = cmd->data.draw.first;
|
||||||
SetDrawState(data, cmd);
|
SetDrawState(data, cmd);
|
||||||
if (vbo) {
|
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 {
|
} else {
|
||||||
const Vertex* verts = (Vertex*)(((Uint8*)vertices) + first);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1399,7 +1399,7 @@ GLES2_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *ver
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
data->glDrawArrays(GL_TRIANGLES, 0, count);
|
data->glDrawArrays(GL_TRIANGLES, 0, (GLsizei) count);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue