summaryrefslogtreecommitdiff
path: root/convtexture.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-27 18:52:48 +1100
committerquou <quou@disroot.org>2024-12-27 18:52:48 +1100
commitd920e5d62020d751ccaa3491cc66275ade749011 (patch)
treee806a95c598e255f9883de98cc350a3b9279d0ce /convtexture.c
parente8c93463b2ae5114f0c88e768e5625abac9d5a50 (diff)
building and running on windows with visual studio
Diffstat (limited to 'convtexture.c')
-rw-r--r--convtexture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/convtexture.c b/convtexture.c
index 2670b59..a321a9d 100644
--- a/convtexture.c
+++ b/convtexture.c
@@ -39,7 +39,7 @@ unsigned encode_endpoint(const vec3* v) {
void get_block(Block* block, Colour* pixels, int stride) {
int x, y, i;
vec3 cols[4 * 4];
- vec3 palette[3];
+ vec3 palette[4];
vec3 s, e;
unsigned es, ee;
float cd;