Remove another useless variable

This commit is contained in:
Clownacy 2020-10-03 16:11:58 +01:00
parent 858fd0beb9
commit c7cd67c410

View file

@ -71,8 +71,6 @@ static RenderBackend_Surface *framebuffer_surface;
static GX2ContextState *gx2_context; static GX2ContextState *gx2_context;
static RenderBackend_GlyphAtlas *glyph_atlas;
static VertexBufferSlot *local_vertex_buffer; static VertexBufferSlot *local_vertex_buffer;
static size_t local_vertex_buffer_size; static size_t local_vertex_buffer_size;
static size_t current_vertex_buffer_slot; static size_t current_vertex_buffer_slot;
@ -745,8 +743,6 @@ void RenderBackend_PrepareToDrawGlyphs(RenderBackend_GlyphAtlas *atlas, RenderBa
static unsigned char last_green; static unsigned char last_green;
static unsigned char last_blue; static unsigned char last_blue;
glyph_atlas = atlas;
// Flush vertex data if a context-change is needed // Flush vertex data if a context-change is needed
if (last_render_mode != MODE_DRAW_GLYPH || last_destination_texture != &destination_surface->texture || last_source_texture != &atlas->texture || last_red != red || last_green != green || last_blue != blue) if (last_render_mode != MODE_DRAW_GLYPH || last_destination_texture != &destination_surface->texture || last_source_texture != &atlas->texture || last_red != red || last_green != green || last_blue != blue)
{ {