From 5ff316ed6d9a941c2e92c92dded5efea4d876b74 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 15 Jun 2022 11:30:05 +0200 Subject: [PATCH] gpu: re-align coverUniforms struct Direct3D requires GPU vertex attribute structs sizes be a multiple 16. A cleanup commit removed an unusued field, and broke that assumption. Fixes: https://todo.sr.ht/~eliasnaur/gio/422 Signed-off-by: Elias Naur --- gpu/path.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gpu/path.go b/gpu/path.go index 8b5beace..c65c81c1 100644 --- a/gpu/path.go +++ b/gpu/path.go @@ -58,6 +58,7 @@ type coverUniforms struct { uvCoverTransform [4]float32 uvTransformR1 [4]float32 uvTransformR2 [4]float32 + _ float32 } type stenciler struct {