Update geometry renderer example

This PR updates the geometry renderer example such that the `color` values of `vertices[3]` are set correctly in `SDL_AppIterate`.
This commit is contained in:
Christian Walter 2025-02-09 09:55:19 -05:00 committed by Sam Lantinga
parent ca9a044b3e
commit e29ebb9f18
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
/* we need one more vertex, since the two triangles can share two of them. */
vertices[3].position.x = 600.0f;
vertices[3].position.y = 150.0f;
vertices[3].color.r = vertices[0].color.g = vertices[0].color.b = vertices[0].color.a = 1.0f;
vertices[3].color.r = vertices[3].color.g = vertices[3].color.b = vertices[3].color.a = 1.0f;
vertices[3].tex_coord.x = 1.0f;
vertices[3].tex_coord.y = 1.0f;