mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 03:26:15 +08:00
testffmpeg: only enable AV_PIX_FMT_VULKAN if we have a Vulkan renderer
This commit is contained in:
+1
-1
@@ -338,7 +338,7 @@ static SDL_bool SupportedPixelFormat(enum AVPixelFormat format)
|
|||||||
return SDL_TRUE;
|
return SDL_TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (format == AV_PIX_FMT_VULKAN) {
|
if (vulkan_context && format == AV_PIX_FMT_VULKAN) {
|
||||||
return SDL_TRUE;
|
return SDL_TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user