From 01498d3acf8a9b4c5b5ccb66b54d8975d1cb848b Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 6 Oct 2022 03:19:28 +0200
Subject: [PATCH] SDL_render_psp.c: fix -Wshadow
Emitted by PSP's gcc
---
src/render/psp/SDL_render_psp.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/render/psp/SDL_render_psp.c b/src/render/psp/SDL_render_psp.c
index 6f0844054e6d..6cfb43a99d5d 100644
--- a/src/render/psp/SDL_render_psp.c
+++ b/src/render/psp/SDL_render_psp.c
@@ -404,14 +404,14 @@ TextureSpillToSram(PSP_RenderData* data, PSP_TextureData* psp_texture)
// Assumes the texture is in VRAM
if(psp_texture->swizzled) {
//Texture was swizzled in vram, just copy to system memory
- void* data = SDL_malloc(psp_texture->size);
- if(!data) {
+ void* sdata = SDL_malloc(psp_texture->size);
+ if(!sdata) {
return SDL_OutOfMemory();
}
- SDL_memcpy(data, psp_texture->data, psp_texture->size);
+ SDL_memcpy(sdata, psp_texture->data, psp_texture->size);
vfree(psp_texture->data);
- psp_texture->data = data;
+ psp_texture->data = sdata;
return 0;
} else {
return TextureSwizzle(psp_texture, NULL); //Will realloc in sysram