testffmpeg: only enable AV_PIX_FMT_VULKAN if we have a Vulkan renderer
This commit is contained in:
1 parent
759ade8c90
commit
2d4105ba8b
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user