This patch makes it prefer nvidia/amd drivers on Debian and hopefully other systems.
Related to #1827.
! See http://factorcode.org/license.txt for BSD license.
! This file is based on the gl.h that comes with xorg-x11 6.8.2
-USING: alien alien.c-types alien.libraries alien.syntax
-io.encodings.ascii kernel opengl.gl.extensions system ;
+USING: alien alien.c-types alien.libraries
+alien.libraries.finder alien.syntax io.encodings.ascii kernel
+opengl.gl.extensions system ;
FROM: alien.c-types => short ;
IN: opengl.gl
<<
os linux? [
- "gl" "libGL.so" cdecl add-library
+ "gl" { "libGL.so.1" "libGL.so" } find-library-from-list cdecl add-library
] when
>>