summaryrefslogtreecommitdiffstats
path: root/libdimension/gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/gl.c')
-rw-r--r--libdimension/gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/gl.c b/libdimension/gl.c
index dd707a9..77099d2 100644
--- a/libdimension/gl.c
+++ b/libdimension/gl.c
@@ -60,7 +60,7 @@ dmnsn_gl_write_canvas(const dmnsn_canvas *canvas)
dmnsn_tcolor tcolor = dmnsn_canvas_get_pixel(canvas, x, y);
tcolor = dmnsn_tcolor_remove_filter(tcolor);
tcolor.c = dmnsn_color_to_sRGB(tcolor.c);
- tcolor = dmnsn_tcolor_saturate(tcolor);
+ tcolor = dmnsn_tcolor_clamp(tcolor);
pixel[0] = lround(tcolor.c.R*UINT8_MAX);
pixel[1] = lround(tcolor.c.G*UINT8_MAX);