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

**URL:** <https://discourse.processing.org/t/solved-pgraphics-or-pimage-as-uniform-not-working-when-using-glsl-in-java-opengl/13514>\
**Category:** Coding Questions\
**Created:** [August 21, 2019, 9:04am UTC](https://discourse.processing.org/t/solved-pgraphics-or-pimage-as-uniform-not-working-when-using-glsl-in-java-opengl/13514 "2019-08-21T09:04:21Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![hamoid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hamoid/32/58_2.png) [@hamoid](https://discourse.processing.org/u/hamoid)\
**Post date:** [August 22, 2019, 1:59pm UTC](https://discourse.processing.org/t/solved-pgraphics-or-pimage-as-uniform-not-working-when-using-glsl-in-java-opengl/13514/14 "2019-08-22T13:59:29Z")

</div>

Which OSes, GPUs and Processing versions are we talking about? I remember shaders that would work fine in Linux but required changes on a Mac (maybe because of different GPUs).

@kesson If you work with shaders… do you know about [DISABLE\_OPTIMIZED\_STROKE](https://discourse.processing.org/t/what-hint-enable-optimized-stroke-does/9416)? It got me very confused before I discovered it.

---

_[View the full topic](https://discourse.processing.org/t/solved-pgraphics-or-pimage-as-uniform-not-working-when-using-glsl-in-java-opengl/13514)._
