mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 20:08:13 +00:00
Fixed building with SDL_LEAN_AND_MEAN
Fixes https://github.com/libsdl-org/SDL/issues/9173
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user