Fix incompatible addition in auto exposure shader
This commit is contained in:
parent
b8f87d3f86
commit
e614a0e9fc
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ void main() {
|
|||
|
||||
#if 1
|
||||
//more precise and expensive, but less jittery
|
||||
ivec2 next_pos = ivec2(gl_FragCoord.xy + ivec2(1)) * source_render_size / target_size;
|
||||
ivec2 next_pos = (ivec2(gl_FragCoord.xy) + ivec2(1)) * source_render_size / target_size;
|
||||
next_pos = max(next_pos, src_pos + ivec2(1)); //so it at least reads one pixel
|
||||
highp vec3 source_color = vec3(0.0);
|
||||
for (int i = src_pos.x; i < next_pos.x; i++) {
|
||||
|
|
Loading…
Reference in a new issue