From cdfaa11a6ccab01d47416b2d5b540e69ad22b562 Mon Sep 17 00:00:00 2001 From: gohai Date: Mon, 30 Oct 2017 21:12:08 +0100 Subject: [PATCH] Fix 3D on Raspberry Pi with Mesa drivers We need to use a special shader to workaround register allocation issues with the new driver, see: https://github.com/anholt/mesa/issues/63 --- core/src/processing/opengl/PGraphicsOpenGL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index a86290a1b..88c835660 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -6893,7 +6893,7 @@ public class PGraphicsOpenGL extends PGraphics { // overwrite the default shaders with vendor specific versions // if needed if (OPENGL_RENDERER.equals("VideoCore IV HW") || // Broadcom's binary driver for Raspberry Pi - OPENGL_RENDERER.equals("Gallium 0.4 on VC4")) { // Mesa driver for same hardware + OPENGL_RENDERER.contains("VC4")) { // Mesa driver for same hardware defLightShaderVertURL = PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/LightVert-vc4.glsl"); defTexlightShaderVertURL =