Browse Source

Set SDL_PROP_TEXTURE_GPU_TEXTURE_V_POINTER to the correct texture

Fixes https://github.com/libsdl-org/SDL/issues/15157
Sam Lantinga 1 month ago
parent
commit
284afc2c9a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/render/gpu/SDL_render_gpu.c

+ 1 - 1
src/render/gpu/SDL_render_gpu.c

@@ -404,7 +404,7 @@ static bool GPU_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture, SDL_
                 return false;
                 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);
         data->YCbCr_matrix = SDL_GetYCbCRtoRGBConversionMatrix(texture->colorspace, texture->w, texture->h, 8);
         if (!data->YCbCr_matrix) {
         if (!data->YCbCr_matrix) {