It’s alike the problem in this thread:
The solution was to make the blur kernel depend on the texture size.