Browse code

Add /dev/dri for WebGL.

Xavier G authored on 29/02/2016 15:48:00
Showing 2 changed files
... ...
@@ -8,6 +8,15 @@ How to quickly find a Flash application since they tend to disappear?
8 8
   Of course, other samples are available on
9 9
     https://www.adobe.com/devnet/actionscript/samples.html
10 10
 
11
+How to quickly find a webGL demo?
12
+  "WebGL Samples" looks like the right place, e.g.:
13
+     http://webglsamples.org/aquarium/aquarium.html
14
+  Other demos:
15
+    http://nouvellevague.ultranoir.com/
16
+    http://madebyevan.com/webgl-water/
17
+    http://www.randelshofer.ch/webgl/rubikscube/
18
+    http://www.webglearth.com/
19
+
11 20
 How to quickly find a Java applet since, well, you know.
12 21
   Looking for "java applet sample" should lead you to
13 22
     https://docs.oracle.com/javase/tutorial/deployment/applet/examplesIndex.html
... ...
@@ -101,8 +101,12 @@ sys_options="--bind=/dev/null:/sys"
101 101
 #       FATAL: error reading `/proc/sys/crypto/fips_enabled' in libgcrypt: Not a directory
102 102
 proc_options=""
103 103
 #   - /dev is present yet minimalist
104
+#     /dev/dri is included for the sake of webGL performance and to avoid the
105
+#     following error message:
106
+#       libGL error: failed to open drm device: No such file or directory
104 107
 dev_options="
105 108
 	--bind=${dev_dir}:/dev
109
+	--bind=/dev/dri:/dev/dri
106 110
 	--bind=/dev/null:/dev/null
107 111
 	--bind=/dev/random:/dev/random
108 112
 	--bind=/dev/urandom:/dev/urandom"