mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2025-02-21 11:11:12 +00:00
testffmpeg: only enable AV_PIX_FMT_VULKAN if we have a Vulkan renderer
This commit is contained in:
parent
759ade8c90
commit
2d4105ba8b
@ -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…
x
Reference in New Issue
Block a user