Set SDL_PROP_TEXTURE_GPU_TEXTURE_V_POINTER to the correct texture

Fixes https://github.com/libsdl-org/SDL/issues/15157
This commit is contained in:
Sam Lantinga
2026-06-23 08:57:49 -07:00
parent e26370810b
commit 284afc2c9a

View File

@@ -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) {