directdraw clipper worked incorrectly in Win11

81 Views Asked by At

I create a clipper and setHWnd. Code like:

m_ddraw->CreateClipper(0, &m_clipper, NULL);
m_clipper->SetHWnd(0, wnd);
m_primarySurface->SetClipper(m_clipper);

In windows10, it worked correctly. But in windows11,sometimes it caused 引发的异常: 0xC0000005: 读取位置 0x0000000000000014 时发生访问冲突。 When I SetHWnd(0,NULL),it doesn't happen.

0

There are 0 best solutions below