From 7c65cfd932108a68e7109c6e548eb01b8b4d8cb4 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 21 Oct 2018 21:18:54 -0400 Subject: [PATCH] Adds default values for `WriteArea`. --- Outputs/CRT/Internals/TextureBuilder.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outputs/CRT/Internals/TextureBuilder.hpp b/Outputs/CRT/Internals/TextureBuilder.hpp index 9770fd03f..456a4e792 100644 --- a/Outputs/CRT/Internals/TextureBuilder.hpp +++ b/Outputs/CRT/Internals/TextureBuilder.hpp @@ -91,7 +91,7 @@ class TextureBuilder { void submit(); struct WriteArea { - uint16_t x, y, length; + uint16_t x = 0, y = 0, length = 0; }; /// Finalises all write areas allocated since the last call to @c flush. Only finalised areas will be /// submitted upon the next @c submit. The supplied function will be called with a list of write areas