d3d12: xbox has no DXGI_PRESENT flags

(cherry picked from commit 54c435409b)
This commit is contained in:
Anonymous Maarten
2024-05-24 19:36:20 +02:00
parent 1e5db996ff
commit e49349ac0c

View File

@@ -58,6 +58,11 @@
#define SDL_COMPOSE_ERROR(str) SDL_STRINGIFY_ARG(__FUNCTION__) ", " str
#endif
/* DXGI_PRESENT flags are removed on Xbox */
#if defined(__XBOXONE__) || defined(__XBOXSERIES__)
#define DXGI_PRESENT_ALLOW_TEARING 0
#endif
#ifdef __cplusplus
#define SAFE_RELEASE(X) \
if (X) { \