vkd3d-shader: Don't resize the buffer when there is enough free space.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni
2021-09-30 21:36:16 +02:00
committed by Alexandre Julliard
parent a1f938e8e4
commit c3f8531477
2 changed files with 3 additions and 10 deletions

View File

@@ -912,8 +912,7 @@ void shader_sm4_reset(struct vkd3d_shader_parser *parser);
struct vkd3d_string_buffer
{
char *buffer;
unsigned int buffer_size;
unsigned int content_size;
size_t buffer_size, content_size;
};
struct vkd3d_string_buffer_cache