shithub: cstory

Download patch

ref: 63e4ac9aa992a995cc79da8718912bf52705fe99
parent: daa55b1a3c542c7747eb0b845fd9a1675500b8be
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Sep 14 08:11:14 EDT 2020

Remove RenderBackend_FlushGlyphs

No longer used for anything

--- a/src/Backends/Rendering.h
+++ b/src/Backends/Rendering.h
@@ -29,6 +29,5 @@
 void RenderBackend_UploadGlyph(RenderBackend_GlyphAtlas *atlas, size_t x, size_t y, const unsigned char *pixels, size_t width, size_t height);
 void RenderBackend_PrepareToDrawGlyphs(RenderBackend_GlyphAtlas *atlas, RenderBackend_Surface *destination_surface, unsigned char red, unsigned char green, unsigned char blue);
 void RenderBackend_DrawGlyph(RenderBackend_GlyphAtlas *atlas, long x, long y, size_t glyph_x, size_t glyph_y, size_t glyph_width, size_t glyph_height);
-void RenderBackend_FlushGlyphs(void);
 void RenderBackend_HandleRenderTargetLoss(void);
 void RenderBackend_HandleWindowResize(size_t width, size_t height);
--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -1009,11 +1009,6 @@
 	}
 }
 
-void RenderBackend_FlushGlyphs(void)
-{
-	
-}
-
 ///////////
 // Misc. //
 ///////////
--- a/src/Backends/Rendering/SDLSurface.cpp
+++ b/src/Backends/Rendering/SDLSurface.cpp
@@ -277,11 +277,6 @@
 		Backend_PrintError("Couldn't blit glyph indivual surface to final glyph surface: %s", SDL_GetError());
 }
 
-void RenderBackend_FlushGlyphs(void)
-{
-	
-}
-
 void RenderBackend_HandleRenderTargetLoss(void)
 {
 	// No problem for us
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -432,11 +432,6 @@
 		Backend_PrintError("Couldn't copy glyph texture portion to renderer: %s", SDL_GetError());
 }
 
-void RenderBackend_FlushGlyphs(void)
-{
-	
-}
-
 void RenderBackend_HandleRenderTargetLoss(void)
 {
 	for (RenderBackend_Surface *surface = surface_list_head; surface != NULL; surface = surface->next)
--- a/src/Backends/Rendering/Software.cpp
+++ b/src/Backends/Rendering/Software.cpp
@@ -328,11 +328,6 @@
 	}
 }
 
-void RenderBackend_FlushGlyphs(void)
-{
-	
-}
-
 void RenderBackend_HandleRenderTargetLoss(void)
 {
 	// No problem for us
--- a/src/Backends/Rendering/WiiU.cpp
+++ b/src/Backends/Rendering/WiiU.cpp
@@ -873,11 +873,6 @@
 	}
 }
 
-void RenderBackend_FlushGlyphs(void)
-{
-	
-}
-
 void RenderBackend_HandleRenderTargetLoss(void)
 {
 	// Doesn't happen on the Wii U
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -1167,8 +1167,6 @@
 				pen_x += glyph->x_advance;
 			}
 		}
-
-		RenderBackend_FlushGlyphs();
 	}
 }