gl: Implement row alignment in CopyBufferToImage routines

This commit is contained in:
kd-11 2022-07-13 00:17:50 +03:00 committed by kd-11
parent 9cc15be7f2
commit 1483941bea
4 changed files with 6 additions and 4 deletions

View file

@ -856,6 +856,7 @@ namespace gl
if (driver_caps.ARB_compute_shader_supported)
{
// 0. Preconf
mem_layout.alignment = caps.alignment;
mem_layout.swap_bytes = op.require_swap;
mem_layout.format = gl_format;
mem_layout.type = gl_type;