From 1f75a21851b0a0bd4bc766c458e67721dd37c9fd Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 22 Aug 2022 21:37:12 -0500 Subject: add append_table() --- src/gl/CMakeLists.txt | 7 +++++++ src/gl/gl.test.c | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src/gl') diff --git a/src/gl/CMakeLists.txt b/src/gl/CMakeLists.txt index d4bc770..c1c3db0 100644 --- a/src/gl/CMakeLists.txt +++ b/src/gl/CMakeLists.txt @@ -11,3 +11,10 @@ target_sources(honey PUBLIC ${GL}/gl.c ${GL}/glad/glad.c ) + + +target_sources(test PUBLIC + ${GL}/glad/glad.c + ${GL}/gl.test.c + ${GL}/window.test.c +) diff --git a/src/gl/gl.test.c b/src/gl/gl.test.c index 7a687b4..488126f 100644 --- a/src/gl/gl.test.c +++ b/src/gl/gl.test.c @@ -15,10 +15,9 @@ void mock_glBufferData_(int, size_t, const void *, int); #define glfwInit mock_glfwInit_ #define hs_throw_error mock_hs_throw_error_ #define glfwTerminate mock_glfwTerminate_ -#undef glBufferData -#define glBufferData mock_glBufferData_ #define setup_shader DUMMY_FUNCTION #define setup_drawing DUMMY_FUNCTION +#define setup_texture DUMMY_FUNCTION #include "gl/gl.c" #include "gl/data.c" #undef glBufferData -- cgit v1.2.1