Correct check for lighting support legovideomanager.cpp

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

View File

@ -134,8 +134,11 @@ MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyM
}
m_direct3d->SetDevice(deviceEnumerate, driver, device);
if (!driver->m_ddCaps.dwCaps2 && driver->m_ddCaps.dwSVBRops[7] != 2) {
/*
* BUG: should be:
* 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) {
p_videoParam.Flags().SetF2bit0(TRUE);
}
else {