From e7106cce9eacad81cac5b1d42da1aa256188431e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 10 Jan 2021 15:22:39 +0900 Subject: [PATCH] [plugin] Remove Draw_Init from draw funcs It's never called outside the renderers. --- include/QF/plugin/vid_render.h | 1 - libs/video/renderer/vid_render_gl.c | 1 - libs/video/renderer/vid_render_glsl.c | 1 - libs/video/renderer/vid_render_sw.c | 1 - libs/video/renderer/vid_render_sw32.c | 1 - libs/video/renderer/vid_render_vulkan.c | 1 - 6 files changed, 6 deletions(-) diff --git a/include/QF/plugin/vid_render.h b/include/QF/plugin/vid_render.h index bdec285d1..6de6e9af7 100644 --- a/include/QF/plugin/vid_render.h +++ b/include/QF/plugin/vid_render.h @@ -108,7 +108,6 @@ typedef struct vid_model_funcs_s { } vid_model_funcs_t; typedef struct vid_render_funcs_s { - void (*Draw_Init) (void); void (*Draw_Character) (int x, int y, unsigned ch); void (*Draw_String) (int x, int y, const char *str); void (*Draw_nString) (int x, int y, const char *str, int count); diff --git a/libs/video/renderer/vid_render_gl.c b/libs/video/renderer/vid_render_gl.c index 9085e751d..434588894 100644 --- a/libs/video/renderer/vid_render_gl.c +++ b/libs/video/renderer/vid_render_gl.c @@ -72,7 +72,6 @@ static vid_model_funcs_t model_funcs = { }; vid_render_funcs_t gl_vid_render_funcs = { - gl_Draw_Init, gl_Draw_Character, gl_Draw_String, gl_Draw_nString, diff --git a/libs/video/renderer/vid_render_glsl.c b/libs/video/renderer/vid_render_glsl.c index 22de04ea3..f8ca47174 100644 --- a/libs/video/renderer/vid_render_glsl.c +++ b/libs/video/renderer/vid_render_glsl.c @@ -72,7 +72,6 @@ static vid_model_funcs_t model_funcs = { }; vid_render_funcs_t glsl_vid_render_funcs = { - glsl_Draw_Init, glsl_Draw_Character, glsl_Draw_String, glsl_Draw_nString, diff --git a/libs/video/renderer/vid_render_sw.c b/libs/video/renderer/vid_render_sw.c index dcfb4abc7..a418d200c 100644 --- a/libs/video/renderer/vid_render_sw.c +++ b/libs/video/renderer/vid_render_sw.c @@ -65,7 +65,6 @@ static vid_model_funcs_t model_funcs = { }; vid_render_funcs_t sw_vid_render_funcs = { - Draw_Init, Draw_Character, Draw_String, Draw_nString, diff --git a/libs/video/renderer/vid_render_sw32.c b/libs/video/renderer/vid_render_sw32.c index ed7414a85..9fffb0298 100644 --- a/libs/video/renderer/vid_render_sw32.c +++ b/libs/video/renderer/vid_render_sw32.c @@ -70,7 +70,6 @@ static vid_model_funcs_t model_funcs = { }; vid_render_funcs_t sw32_vid_render_funcs = { - sw32_Draw_Init, sw32_Draw_Character, sw32_Draw_String, sw32_Draw_nString, diff --git a/libs/video/renderer/vid_render_vulkan.c b/libs/video/renderer/vid_render_vulkan.c index a2ab54024..a4299d827 100644 --- a/libs/video/renderer/vid_render_vulkan.c +++ b/libs/video/renderer/vid_render_vulkan.c @@ -194,7 +194,6 @@ static vid_model_funcs_t model_funcs = { }; vid_render_funcs_t vulkan_vid_render_funcs = { - 0,//vulkan_Draw_Init, 0,//vulkan_Draw_Character, 0,//vulkan_Draw_String, 0,//vulkan_Draw_nString,