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

My mistake, thanks.

The problem was not solved anyway.

Could not run the sketch.

The shader doesn't have a uniform called "txtr" OR the uniform was removed during compilation because it was unused.
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.

new Vertex Shader:

uniform mat4 transform;
uniform sampler2D txtr;

attribute vec4 vertex;
attribute vec4 color;

varying vec4 vertColor;

void main() {
  gl_Position = transform * vertex;  
  float st = texture2D(txtr, vec2(0.5, 0.5)).r;
  gl_PointSize = st * 10.0;  
  vertColor = color;
}