mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 23:40:54 +00:00
Fixed building with SDL_LEAN_AND_MEAN
Fixes https://github.com/libsdl-org/SDL/issues/9173
This commit is contained in:
parent
107e06a92a
commit
eb5a2e7e7f
1 changed files with 5 additions and 5 deletions
|
@ -237,7 +237,6 @@ typedef struct
|
|||
int height;
|
||||
VULKAN_Shader shader;
|
||||
|
||||
#if SDL_HAVE_YUV
|
||||
/* Object passed to VkImageView and VkSampler for doing Ycbcr -> RGB conversion */
|
||||
VkSamplerYcbcrConversion samplerYcbcrConversion;
|
||||
/* Sampler created with samplerYcbcrConversion, passed to PSO as immutable sampler */
|
||||
|
@ -246,7 +245,6 @@ typedef struct
|
|||
VkDescriptorSetLayout descriptorSetLayoutYcbcr;
|
||||
/* Pipeline layout with immutable sampler descriptor set layout */
|
||||
VkPipelineLayout pipelineLayoutYcbcr;
|
||||
#endif
|
||||
|
||||
} VULKAN_TextureData;
|
||||
|
||||
|
@ -4003,6 +4001,7 @@ SDL_Renderer *VULKAN_CreateRenderer(SDL_Window *window, SDL_PropertiesID create_
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#if SDL_HAVE_YUV
|
||||
if (rendererData->supportsKHRSamplerYCbCrConversion) {
|
||||
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_YV12;
|
||||
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_IYUV;
|
||||
|
@ -4010,6 +4009,7 @@ SDL_Renderer *VULKAN_CreateRenderer(SDL_Window *window, SDL_PropertiesID create_
|
|||
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_NV21;
|
||||
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_P010;
|
||||
}
|
||||
#endif
|
||||
|
||||
return renderer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue