mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user