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
This commit is contained in:
gohai
2017-10-30 21:12:08 +01:00
parent 1b84d46587
commit cdfaa11a6c
@@ -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 =