c: Fix old style struct declarations

This commit is contained in:
2025-06-14 23:58:10 +10:00
parent ad2afbeebd
commit 73bdc85992
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ static SDL_GPUTexture* texture = NULL;
static float projection[16];
static bool lighting = false;
struct Light { float ambient[4], diffuse[4], position[4]; } static light =
static struct Light { float ambient[4], diffuse[4], position[4]; } light =
{
.ambient = { 0.5f, 0.5f, 0.5f, 1.0f },
.diffuse = { 1.0f, 1.0f, 1.0f, 1.0f },

View File

@@ -70,7 +70,7 @@ static float projection[16];
static bool lighting = false;
static bool blending = false;
struct Light { float ambient[4], diffuse[4], position[4]; } static light =
static struct Light { float ambient[4], diffuse[4], position[4]; } light =
{
.ambient = { 0.5f, 0.5f, 0.5f, 1.0f },
.diffuse = { 1.0f, 1.0f, 1.0f, 1.0f },