[SOLVED] PGraphics or PImage as Uniform not working when using GLSL in Java OpenGL

Hi @hamoid thank you, I tried both P2D and P3D as renderer in the PGraphics but still I receive the same error.

I also tried with both jpg and png images with PImage, same result. Looks like that since the sampler2D uniform is removed during the compilation, when it tries to get the texture it doesn’t find the texture anymore.