Fix coordinatespace for texture-pixel lookup.
1 files changed, 1 insertions(+), 1 deletions(-) M lib/Graphics/Rendering/Rect/Backgrounds.hs
M lib/Graphics/Rendering/Rect/Backgrounds.hs => lib/Graphics/Rendering/Rect/Backgrounds.hs +1 -1
@@ 22,7 22,7 @@ imageFragmentShader = B8.pack $ unlines [ "in vec2 coord;", "out vec4 fcolour;", "uniform sampler2D image;", - "void main() { fcolour = texture(image, coord); }" + "void main() { fcolour = texture(image, coord/textureSize(image, 0)); }" ] renderBackgrounds :: (MonadIO m, MonadIO n) =>