1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

wined3d: Force debug info in critical sections.

This commit is contained in:
Paul Gofman 2024-02-26 20:38:02 -06:00 committed by Alexandre Julliard
parent c837cb3e77
commit f5ba517323

View file

@ -4145,7 +4145,7 @@ struct wined3d_shader_limits
#define wined3d_lock_init(lock, name) wined3d_lock_init_(lock, __FILE__ ": " name)
static inline void wined3d_lock_init_(CRITICAL_SECTION *lock, const char *name)
{
InitializeCriticalSection(lock);
InitializeCriticalSectionEx(lock, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
if (lock->DebugInfo != (RTL_CRITICAL_SECTION_DEBUG *)-1)
lock->DebugInfo->Spare[0] = (DWORD_PTR)name;
}