Fix water shader on OpenGL


Make sure c doesn't become negative as that is undefined behavior
for GLSL pow.

Task-number: QTBUG-113021
Pick-to: 6.5
Change-Id: I64d00d018e5e860541e86647cad605a11aad5767
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
commitd39692b5b4e6dd9d1513062265b1d22e34054e4b
parent8d0abe89356f2a912d6bfb97e99988d0611ba287
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeFri, 21 Apr 2023 19:53:11 +0300