mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-06 09:07:05 +00:00
[GPU] D3D12 backend debug markers were being cut
Code used wcslen that return number of characters, but D3D12 debug layer uses bytes + wide chars
This commit is contained in:
@@ -2028,7 +2028,7 @@ static void D3D12_InsertDebugLabel(
|
||||
d3d12CommandBuffer->graphicsCommandList,
|
||||
0,
|
||||
wchar_text,
|
||||
(UINT)SDL_wcslen(wchar_text));
|
||||
(UINT)SDL_wcslen(wchar_text) * sizeof(WCHAR));
|
||||
|
||||
SDL_free(wchar_text);
|
||||
}
|
||||
@@ -2044,7 +2044,7 @@ static void D3D12_PushDebugGroup(
|
||||
d3d12CommandBuffer->graphicsCommandList,
|
||||
0,
|
||||
wchar_text,
|
||||
(UINT)SDL_wcslen(wchar_text));
|
||||
(UINT)SDL_wcslen(wchar_text) * sizeof(WCHAR));
|
||||
|
||||
SDL_free(wchar_text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user