From 284afc2c9a77690b980966479478e0f2d87a33fe Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 23 Jun 2026 08:57:49 -0700
Subject: [PATCH] Set SDL_PROP_TEXTURE_GPU_TEXTURE_V_POINTER to the correct
texture
Fixes https://github.com/libsdl-org/SDL/issues/15157
---
src/render/gpu/SDL_render_gpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/render/gpu/SDL_render_gpu.c b/src/render/gpu/SDL_render_gpu.c
index 4bee1a243671f..09a46177d73a7 100644
--- a/src/render/gpu/SDL_render_gpu.c
+++ b/src/render/gpu/SDL_render_gpu.c
@@ -404,7 +404,7 @@ static bool GPU_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture, SDL_
return false;
}
}
- SDL_SetPointerProperty(props, SDL_PROP_TEXTURE_GPU_TEXTURE_V_POINTER, data->textureU);
+ SDL_SetPointerProperty(props, SDL_PROP_TEXTURE_GPU_TEXTURE_V_POINTER, data->textureV);
data->YCbCr_matrix = SDL_GetYCbCRtoRGBConversionMatrix(texture->colorspace, texture->w, texture->h, 8);
if (!data->YCbCr_matrix) {