Skip to content

Commit db97260

Browse files
committed
gpu: Xbox buildfix
1 parent 8a2e2e7 commit db97260

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/gpu/d3d12/SDL_gpu_d3d12.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8872,6 +8872,12 @@ static SDL_GPUDevice *D3D12_CreateDevice(bool debugMode, bool preferLowPower, SD
88728872
// Initialize the D3D12 debug layer, if applicable
88738873
if (debugMode) {
88748874
bool hasD3d12Debug = D3D12_INTERNAL_TryInitializeD3D12Debug(renderer);
8875+
#if (defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES))
8876+
if (hasD3d12Debug) {
8877+
SDL_LogInfo(
8878+
SDL_LOG_CATEGORY_GPU,
8879+
"Validation layers enabled, expect debug level performance!");
8880+
#else
88758881
if (hasDxgiDebug && hasD3d12Debug) {
88768882
SDL_LogInfo(
88778883
SDL_LOG_CATEGORY_GPU,
@@ -8880,6 +8886,7 @@ static SDL_GPUDevice *D3D12_CreateDevice(bool debugMode, bool preferLowPower, SD
88808886
SDL_LogWarn(
88818887
SDL_LOG_CATEGORY_GPU,
88828888
"Validation layers partially enabled, some warnings may not be available");
8889+
#endif
88838890
} else {
88848891
SDL_LogWarn(
88858892
SDL_LOG_CATEGORY_GPU,

0 commit comments

Comments
 (0)