fix opengl warning

This commit is contained in:
Isaac0-dev 2025-05-29 12:49:38 +10:00
parent 1f2e09da6e
commit 56a5e0b7d2

View file

@ -363,7 +363,7 @@ static struct ShaderProgram *gfx_opengl_create_and_load_new_shader(struct ColorC
}
if ((opt_alpha && opt_dither) || ccf.do_noise) {
append_line(fs_buf, &fs_len, "uniform float uFrameCount;");
append_line(fs_buf, &fs_len, "uniform int uFrameCount;");
append_line(fs_buf, &fs_len, "float random(in vec3 value) {");
append_line(fs_buf, &fs_len, " float random = dot(sin(value), vec3(12.9898, 78.233, 37.719));");