Cause shader recompilation when changing shader constants in GLES
Description When using GLES as a backend, shaders would not recompile when changing push constants because they were not included in the program cache key. They are now, but the way the key field is generated could be improved.
Testing Using a simple shader choosing between two colours depending on an override constant.
Squash or Rebase?
Squash
resolved: title was misleading, this not about push constants which shouldn't be part of shader compilation, but rather about shader constants
@DerSchmale Any updates on this?
Hey not yet, I've been swamped with work and haven't had the time to properly fix this. My apologies for this.
Force of habit, changed it to to_ne_bytes.
@jimblandy This should be good to look at again soon, its just a few lines