From 0a56609769db0020ec74195c90d4ba4a6f3d6876 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 26 Dec 2020 19:24:35 +0100 Subject: [PATCH] gpu: update definition of path vertex size The size is unchanged, but a corner is no longer encoded as two 16-bit ints (2*2 bytes); it is encoded as a float32 (1*4 bytes). Signed-off-by: Elias Naur --- gpu/path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/path.go b/gpu/path.go index da02d6ea..69abfd4f 100644 --- a/gpu/path.go +++ b/gpu/path.go @@ -143,7 +143,7 @@ const ( // Number of path quads per draw batch. pathBatchSize = 10000 // Size of a vertex as sent to gpu - vertStride = 7*4 + 2*2 + vertStride = 8 * 4 ) func newPather(ctx backend.Device) *pather {