From 6ff065fa63af6dc1d3fc19e335321201792304ec Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 18 Aug 2017 15:02:12 +0200 Subject: [PATCH] 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 --- common/gal/opengl/vertex_container.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/gal/opengl/vertex_container.cpp b/common/gal/opengl/vertex_container.cpp index e22d77766c..7ade5d415a 100644 --- a/common/gal/opengl/vertex_container.cpp +++ b/common/gal/opengl/vertex_container.cpp @@ -41,11 +41,11 @@ VERTEX_CONTAINER* VERTEX_CONTAINER::MakeContainer( bool 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 - if( strstr( (const char*) vendor, "AMD" ) ) + if( strstr( vendor, "X.Org" ) || strstr( vendor, "nouveau" ) ) return new CACHED_CONTAINER_RAM; else return new CACHED_CONTAINER_GPU;