From 81b1cc1083870d693ebe22a814e82880a1dd88d2 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 20 Jan 2023 22:39:06 +0100 Subject: [PATCH] azur: double buffer space for command data Now that it's in the main RAM we don't have to limit it as much. --- azur/src/gint/render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azur/src/gint/render.c b/azur/src/gint/render.c index 4ead773..1271ed0 100644 --- a/azur/src/gint/render.c +++ b/azur/src/gint/render.c @@ -30,7 +30,7 @@ static int commands_count=0, commands_length=0; Rendering order is integer order. */ static uint32_t commands_array[AZRP_MAX_COMMANDS]; -static GALIGNED(4) uint8_t commands_data[8192]; +static GALIGNED(4) uint8_t commands_data[16384]; /* Array of shader programs and uniforms. */ static azrp_shader_t *shaders[AZRP_MAX_SHADERS] = { NULL }; @@ -244,7 +244,7 @@ bool azrp_queue_command(void *command, size_t size, int fragment, int count) { if(commands_count + count > AZRP_MAX_COMMANDS) return false; - if(commands_length + size >= 8192) + if(commands_length + size >= sizeof command_data) return false; uint8_t *dst = commands_data + commands_length;