Remove stub functions in null display driver

This commit is contained in:
twinaphex 2020-09-27 00:18:16 +02:00
parent 7225170e97
commit e87b44a68c
1 changed files with 4 additions and 11 deletions

View File

@ -40,13 +40,6 @@
* needs to be refactored */ * needs to be refactored */
uintptr_t gfx_display_white_texture; uintptr_t gfx_display_white_texture;
static void gfx_display_null_blend_begin(void *data) { }
static void gfx_display_null_blend_end(void *data) { }
static void gfx_display_null_draw(gfx_display_ctx_draw_t *draw,
void *data, unsigned width, unsigned height) { }
static void gfx_display_null_draw_pipeline(gfx_display_ctx_draw_t *draw,
void *data, unsigned width, unsigned height) { }
static bool gfx_display_null_font_init_first( static bool gfx_display_null_font_init_first(
void **font_handle, void *video_data, void **font_handle, void *video_data,
const char *font_path, float font_size, const char *font_path, float font_size,
@ -74,10 +67,10 @@ static const float *gfx_display_null_get_default_tex_coords(void)
} }
gfx_display_ctx_driver_t gfx_display_ctx_null = { gfx_display_ctx_driver_t gfx_display_ctx_null = {
gfx_display_null_draw, NULL, /* draw */
gfx_display_null_draw_pipeline, NULL, /* draw_pipeline */
gfx_display_null_blend_begin, NULL, /* blend_begin */
gfx_display_null_blend_end, NULL, /* blend_end */
NULL, /* get_default_mvp */ NULL, /* get_default_mvp */
gfx_display_null_get_default_vertices, gfx_display_null_get_default_vertices,
gfx_display_null_get_default_tex_coords, gfx_display_null_get_default_tex_coords,