Skip to content

Pass correct stride value to `gdk::MemoryTexture`

Fabio requested to merge fabrixxm/fractal:issue-1390 into main

image library's SampleLayout.height_stride is calculated as samples per pixels, while gdk::MemoryTexture stride is bytes per pixels, resulting in a "Gdk-CRITICAL" message and black texture if image samples are not 8 bits.

This patch add bpp param ("bytes per pixels") to texture_from_data() to calculate correct stride value

fix #1390 (closed)

Merge request reports