RESOLVED
I found my mistake, i forgot
- img.loadPixels();
after
- if (cam.available() == true) {
- background(125);
- cam.read();
- img = cam;
Now it works with either renderer :)