Fixed recognition of GPUs not handling glMapBuffer() efficiently

Fixes: lp:1685335
* https://bugs.launchpad.net/kicad/+bug/1685335

Fixes: lp:1683041
* https://bugs.launchpad.net/kicad/+bug/1683041
This commit is contained in:
Maciej Suminski 2017-08-18 15:02:12 +02:00
parent 077fb3c294
commit 6ff065fa63
1 changed files with 3 additions and 3 deletions

View File

@ -41,11 +41,11 @@ VERTEX_CONTAINER* VERTEX_CONTAINER::MakeContainer( bool aCached )
{ {
if( aCached ) if( aCached )
{ {
const unsigned char* vendor = glGetString( GL_VENDOR ); const char* vendor = (const char*) glGetString( GL_VENDOR );
// AMD/ATI cards do not cope well with GPU memory mapping, // Open source drivers do not cope well with GPU memory mapping,
// so the vertex data has to be kept in RAM // so the vertex data has to be kept in RAM
if( strstr( (const char*) vendor, "AMD" ) ) if( strstr( vendor, "X.Org" ) || strstr( vendor, "nouveau" ) )
return new CACHED_CONTAINER_RAM; return new CACHED_CONTAINER_RAM;
else else
return new CACHED_CONTAINER_GPU; return new CACHED_CONTAINER_GPU;