mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
testffmpeg: only enable AV_PIX_FMT_VULKAN if we have a Vulkan renderer
This commit is contained in:
parent
759ade8c90
commit
2d4105ba8b
1 changed files with 1 additions and 1 deletions
|
|
@ -338,7 +338,7 @@ static SDL_bool SupportedPixelFormat(enum AVPixelFormat format)
|
|||
return SDL_TRUE;
|
||||
}
|
||||
#endif
|
||||
if (format == AV_PIX_FMT_VULKAN) {
|
||||
if (vulkan_context && format == AV_PIX_FMT_VULKAN) {
|
||||
return SDL_TRUE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue