From 13b63a1ba25c5930755e96a9158e53b13d1a884e Mon Sep 17 00:00:00 2001 From: Quinn Date: Fri, 6 Jun 2025 17:57:37 +0200 Subject: [PATCH] fix: include glad implementation in the unit test file, since it was lacking that --- test/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/main.c b/test/main.c index f890f5c..52210b8 100644 --- a/test/main.c +++ b/test/main.c @@ -1,5 +1,9 @@ // Copyright (c) 2025 Quinn // Licensed under the MIT Licence. See LICENSE for details +#define GLAD_GL_IMPLEMENTATION +#include +#undef GLAD_GL_IMPLEMENTATION + #include #include #include @@ -54,8 +58,8 @@ int main(void) { {&test_float3_norm, &(float3){2.0F, 0.67F, 5.0F}}, {&test_float3_norm, &(float3){0.2F, 0.4F, 0.1F} }, {&test_colour32_endianess, (uint32_t[]){0, 1} }, - {&test_compat_endianess, (uint32_t[]){0x15F59267}} - }; + {&test_compat_endianess, (uint32_t[]){0x15F59267} } + }; // get test count size_t n = sizeof(tests) / sizeof(tests[0]);