Silence more warnings

This commit is contained in:
Twinaphex 2017-02-26 22:16:03 +01:00
parent fdbdcfee65
commit 43c32aad3d

View File

@ -1402,10 +1402,10 @@ static bool gl_glsl_set_coords(void *handle_data, void *shader_data, const struc
{
/* Avoid hitting malloc on every single regular quad draw. */
GLfloat short_buffer[4 * (2 + 2 + 4 + 2)];
GLfloat *buffer;
struct glsl_attrib attribs[4];
size_t attribs_size = 0;
size_t size = 0;
GLfloat *buffer = NULL;
struct glsl_attrib *attr = NULL;
const struct shader_uniforms *uni = NULL;
glsl_shader_data_t *glsl = (glsl_shader_data_t*)shader_data;
@ -1415,8 +1415,8 @@ static bool gl_glsl_set_coords(void *handle_data, void *shader_data, const struc
attr = attribs;
uni = &glsl->uniforms[glsl->active_idx];
buffer = short_buffer;
if (coords->vertices > 4)
{
size_t elems = 0;