diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index 7912117b2c..01938e4c1d 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -5157,7 +5157,7 @@ static bool SDLCALL SDL_SW_RenderGeometryRaw(SDL_Renderer *renderer, } // Check if UVs within range - if (is_quad) { + if (is_quad && uv) { const float *uv0_ = (const float *)((const char *)uv + A * color_stride); const float *uv1_ = (const float *)((const char *)uv + B * color_stride); const float *uv2_ = (const float *)((const char *)uv + C * color_stride);