ARM: Allow Raspberry Pi's Mesa GL driver to use up to 8 lights

This caused register allocation issues before, but now this seem to be only still necessary for the binary GLES2 driver, where even enabling one more light (from 2 to 3) will make the shader compiler unhappy. Tested with 11.1.0-1+rpi1 on all P2D & P3D examples.
This commit is contained in:
gohai
2017-02-17 18:47:44 +01:00
parent 8414512af9
commit b1e583bd82

View File

@@ -6885,8 +6885,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
if (OPENGL_RENDERER.equals("VideoCore IV HW")) { // Mesa driver for same hardware
defLightShaderVertURL =
PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/LightVert-vc4.glsl");
defTexlightShaderVertURL =