From 563dd80a5228ef25d59545d619e2a6e841eee087 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Mon, 25 Apr 2022 23:53:47 +0200 Subject: [PATCH] fix liteparticles shaders not compiling on windows firefox webgl d3d --- .../mm/opengl/render_tasks/lite_particles2d.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/framework/opengl_renderer/src/mm/opengl/render_tasks/lite_particles2d.cpp b/framework/opengl_renderer/src/mm/opengl/render_tasks/lite_particles2d.cpp index e6c6d9e..8c8bd14 100644 --- a/framework/opengl_renderer/src/mm/opengl/render_tasks/lite_particles2d.cpp +++ b/framework/opengl_renderer/src/mm/opengl/render_tasks/lite_particles2d.cpp @@ -545,13 +545,13 @@ vec2 fetch_vec2(in uint offset, in uint type) { sim_config_type fetch_type_config(uint type) { return sim_config_type( - texelFetch(_type_buffer, ivec2(0, type), 0).r, + texelFetch(_type_buffer, ivec2(0u, type), 0).r, fetch_vec2(1u, type), - texelFetch(_type_buffer, ivec2(3, type), 0).r, - texelFetch(_type_buffer, ivec2(4, type), 0).r, - texelFetch(_type_buffer, ivec2(5, type), 0).r, - texelFetch(_type_buffer, ivec2(6, type), 0).r, - texelFetch(_type_buffer, ivec2(7, type), 0).r + texelFetch(_type_buffer, ivec2(3u, type), 0).r, + texelFetch(_type_buffer, ivec2(4u, type), 0).r, + texelFetch(_type_buffer, ivec2(5u, type), 0).r, + texelFetch(_type_buffer, ivec2(6u, type), 0).r, + texelFetch(_type_buffer, ivec2(7u, type), 0).r ); } @@ -698,8 +698,8 @@ config_type fetch_config_type(uint type) { return config_type( fetch_vec4(0u, type), fetch_vec4(4u, type), - texelFetch(_type_buffer, ivec2(8, type), 0).r, - texelFetch(_type_buffer, ivec2(9, type), 0).r + texelFetch(_type_buffer, ivec2(8u, type), 0).r, + texelFetch(_type_buffer, ivec2(9u, type), 0).r ); }