Commit d39c4f98 authored by Téo Mazars's avatar Téo Mazars

operations: minor clean-up

parent 47cd7192
......@@ -87,12 +87,7 @@ gegl_buffer_export_png (GeglBuffer *gegl_buffer,
}
{
const Babl *babl; /*= gegl_buffer->format;*/
g_object_get (gegl_buffer, "format", &babl, NULL);
if (babl_format_get_type (babl, 0) != babl_type ("u8"))
bit_depth = 16;
const Babl *babl = gegl_buffer_get_format (gegl_buffer);
if (bd == 16)
bit_depth = 16;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment