Commit 2fd3dcb8 authored by David Wyand's avatar David Wyand

Merge pull request #320 from DavidWyand-GG/PlatformVideoInfoFix

Fix platforms that don't support PVI_NumAdapters
parents ee44e447 4f4c496f
......@@ -52,9 +52,15 @@ bool PlatformVideoInfo::profileAdapters()
String tempString;
if( !_queryProperty( PVI_NumAdapters, 0, &tempString ) )
return false;
mAdapters.increment( dAtoi( tempString ) );
{
// Not all platforms may support PVI_NumAdapters. We will assume that there
// is one adapter. This was the behavior before PVI_NumAdapters was implemented.
mAdapters.increment( 1 );
}
else
{
mAdapters.increment( dAtoi( tempString ) );
}
U32 adapterNum = 0;
for( Vector<PVIAdapter>::iterator itr = mAdapters.begin(); itr != mAdapters.end(); itr++ )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment