SDL: SDL_render.c: lighten the cast syntax

From 4342e6bd21d855de6015af0a280b57609a3a0912 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Thu, 16 Dec 2021 10:53:27 +0100
Subject: [PATCH] SDL_render.c: lighten the cast syntax

---
 src/render/SDL_render.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index 950db0bbf74..d04cc8a11cd 100644
--- a/src/render/SDL_render.c
+++ b/src/render/SDL_render.c
@@ -3585,11 +3585,11 @@ SDL_RenderGeometry(SDL_Renderer *renderer,
                                const int *indices, int num_indices)
 {
     if (vertices) {
-        const float *xy = &vertices[0].position.x;
+        const float *xy = &vertices->position;
         int xy_stride = sizeof (SDL_Vertex);
-        const SDL_Color *color = &vertices[0].color;
+        const SDL_Color *color = &vertices->color;
         int color_stride = sizeof (SDL_Vertex);
-        const float *uv = &vertices[0].tex_coord.x;
+        const float *uv = &vertices->tex_coord;
         int uv_stride = sizeof (SDL_Vertex);
         int size_indices = 4;
         return SDL_RenderGeometryRaw(renderer, texture, xy, xy_stride, color, color_stride, uv, uv_stride, num_vertices, indices, num_indices, size_indices);