mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
d3d12: xbox has no DXGI_PRESENT flags
This commit is contained in:

committed by
Anonymous Maarten

parent
964e0c9b47
commit
54c435409b
@@ -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) { \
|
||||
|
Reference in New Issue
Block a user