mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
Disable refresh rate checking. Fix for SLI video cards.
This commit is contained in:
parent
7a6fd8188c
commit
38051b1591
@ -622,6 +622,9 @@ search_for_valid_displaymode(DXScreenData &scrn,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disable refresh rate checking since SLI video cards may use
|
||||||
|
// refresh rates less than 60
|
||||||
|
if (0) {
|
||||||
if ((dispmode.RefreshRate<60) && (dispmode.RefreshRate>1)) {
|
if ((dispmode.RefreshRate<60) && (dispmode.RefreshRate>1)) {
|
||||||
// dont want refresh rates under 60Hz, but 0 or 1 might indicate
|
// dont want refresh rates under 60Hz, but 0 or 1 might indicate
|
||||||
// a default refresh rate, which is usually > = 60
|
// a default refresh rate, which is usually > = 60
|
||||||
@ -632,6 +635,7 @@ search_for_valid_displaymode(DXScreenData &scrn,
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Note no attempt is made to verify if format will work at
|
// Note no attempt is made to verify if format will work at
|
||||||
// requested size, so even if this call succeeds, could still get
|
// requested size, so even if this call succeeds, could still get
|
||||||
|
@ -648,6 +648,9 @@ search_for_valid_displaymode(DXScreenData &scrn,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disable refresh rate checking since SLI video cards may use
|
||||||
|
// refresh rates less than 60
|
||||||
|
if (0) {
|
||||||
if ((dispmode.RefreshRate<60) && (dispmode.RefreshRate>1)) {
|
if ((dispmode.RefreshRate<60) && (dispmode.RefreshRate>1)) {
|
||||||
// dont want refresh rates under 60Hz, but 0 or 1 might indicate
|
// dont want refresh rates under 60Hz, but 0 or 1 might indicate
|
||||||
// a default refresh rate, which is usually > = 60
|
// a default refresh rate, which is usually > = 60
|
||||||
@ -658,6 +661,7 @@ search_for_valid_displaymode(DXScreenData &scrn,
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Note no attempt is made to verify if format will work at
|
// Note no attempt is made to verify if format will work at
|
||||||
// requested size, so even if this call succeeds, could still get
|
// requested size, so even if this call succeeds, could still get
|
||||||
|
@ -2043,8 +2043,7 @@ find_acceptable_display_mode(DWORD dwWidth, DWORD dwHeight, DWORD bpp,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((dm.dmPelsWidth == dwWidth) && (dm.dmPelsHeight == dwHeight) &&
|
if ((dm.dmPelsWidth == dwWidth) && (dm.dmPelsHeight == dwHeight) &&
|
||||||
(dm.dmBitsPerPel == bpp) &&
|
(dm.dmBitsPerPel == bpp)) {
|
||||||
ACCEPTABLE_REFRESH_RATE(dm.dmDisplayFrequency)) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
modenum++;
|
modenum++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user