summaryrefslogtreecommitdiff
path: root/src/gl/gl.test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gl/gl.test.c')
-rw-r--r--src/gl/gl.test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gl/gl.test.c b/src/gl/gl.test.c
index bab8529..363036a 100644
--- a/src/gl/gl.test.c
+++ b/src/gl/gl.test.c
@@ -10,11 +10,15 @@ int mock_hs_throw_error_(lua_State *L, const char *str, ...);
void mock_glfwTerminate_();
void mock_glBufferData_(int, size_t, const void *, int);
+#define DUMMY_FUNCTION(...)
+
#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
#include "gl/gl.c"
#undef glBufferData
#undef glfwTerminate