Update legovideomanager.cpp

This commit is contained in:
Anders Jenbo 2025-05-14 22:10:45 +02:00 committed by GitHub
parent 4172217a32
commit 61e28d4c3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -136,9 +136,9 @@ MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyM
m_direct3d->SetDevice(deviceEnumerate, driver, device); m_direct3d->SetDevice(deviceEnumerate, driver, device);
/* /*
* BUG: should be: * BUG: should be:
* if ((driver->m_ddCaps.dwCaps2 & DDCAPS2_CERTIFIED) == 0 && driver->m_ddCaps.dwSVBRops[7] != 2) { * if ((driver->m_ddCaps.dwCaps2 & DDCAPS2_CERTIFIED) == 0 && driver->m_ddCaps.dwSVBRops[7] != 2) {
*/ */
if (driver->m_ddCaps.dwCaps2 != DDCAPS2_CERTIFIED && driver->m_ddCaps.dwSVBRops[7] != 2) { if (driver->m_ddCaps.dwCaps2 != DDCAPS2_CERTIFIED && driver->m_ddCaps.dwSVBRops[7] != 2) {
p_videoParam.Flags().SetF2bit0(TRUE); p_videoParam.Flags().SetF2bit0(TRUE);
} }
else { else {