diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2026-01-13 16:42:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-13 16:42:31 +0100 |
| commit | e43f949f8a80611fdfe21068f55dfe9fb7604ae8 (patch) | |
| tree | 027f97b96c6fcbe5c0770f158e32440d53c429b1 /src/render/Renderer.cpp | |
| parent | 8d03fcc8d76245be013254ea30fbe534f680dc9f (diff) | |
shm: ensure we use right gl unpack alignment (#12975)
gl defaults to 4 and not all formats is divisible with 4 meaning its
going to pad out ouf bounds and cause issues. check if the stride is
divisible with 4 otherwise set it to 1, aka disable it.
GL_UNPACK_ALIGNMENT only takes 1,2,4,8 but formats like RGB888 has
bytesPerBlock 3.
Diffstat (limited to 'src/render/Renderer.cpp')
0 files changed, 0 insertions, 0 deletions
