mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Fix a bug that should never happen
This fixes a crash that occurs on systems with no Direct3D device available. The device selector returns a NULL string, which is then strstr'ed for some ancient nvidia card. For now, let's wrap that in a NULL check. Eventually, when we scrub plClient.cpp and winmain.cpp, that hack should just be dropped.
This commit is contained in:
@ -2334,7 +2334,7 @@ void plClient::IDetectAudioVideoSettings()
|
||||
plPipeline::fDefaultPipeParams.VSync = false;
|
||||
|
||||
// card specific overrides
|
||||
if(strstr(rec->GetDriverDesc(), "FX 5200"))
|
||||
if(rec->GetDriverDesc() && strstr(rec->GetDriverDesc(), "FX 5200"))
|
||||
{
|
||||
plPipeline::fDefaultPipeParams.AntiAliasingAmount = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user