Use StartsWith instead of Contains for the Intel check

This commit is contained in:
Marek Roszko 2021-09-20 18:55:58 -04:00
parent 22a29a42cf
commit 91e456113f
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ CACHED_CONTAINER_GPU::CACHED_CONTAINER_GPU( unsigned int aSize ) :
// disable glCopyBuffer, causes crashes/freezes on certain driver versions // disable glCopyBuffer, causes crashes/freezes on certain driver versions
// Note, Intel's GL_VENDOR string varies depending on GPU/driver generation // Note, Intel's GL_VENDOR string varies depending on GPU/driver generation
// But generally always starts with Intel at least // But generally always starts with Intel at least
if( vendor.Contains( "Intel" ) || vendor.Contains( "etnaviv" ) ) if( vendor.StartsWith( "Intel" ) || vendor.Contains( "etnaviv" ) )
{ {
m_useCopyBuffer = false; m_useCopyBuffer = false;
} }