Expand "Intel" GL_VENDOR check for workaround

Fix #7444 maybe
This commit is contained in:
Marek Roszko 2021-09-20 18:20:47 -04:00
parent 32a5653464
commit 1b8259701e
1 changed files with 5 additions and 3 deletions

View File

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