Pass correct stride value to `gdk::MemoryTexture`
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)