mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Silence more warnings
This commit is contained in:
parent
fdbdcfee65
commit
43c32aad3d
@ -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. */
|
/* Avoid hitting malloc on every single regular quad draw. */
|
||||||
GLfloat short_buffer[4 * (2 + 2 + 4 + 2)];
|
GLfloat short_buffer[4 * (2 + 2 + 4 + 2)];
|
||||||
GLfloat *buffer;
|
|
||||||
struct glsl_attrib attribs[4];
|
struct glsl_attrib attribs[4];
|
||||||
size_t attribs_size = 0;
|
size_t attribs_size = 0;
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
|
GLfloat *buffer = NULL;
|
||||||
struct glsl_attrib *attr = NULL;
|
struct glsl_attrib *attr = NULL;
|
||||||
const struct shader_uniforms *uni = NULL;
|
const struct shader_uniforms *uni = NULL;
|
||||||
glsl_shader_data_t *glsl = (glsl_shader_data_t*)shader_data;
|
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;
|
attr = attribs;
|
||||||
uni = &glsl->uniforms[glsl->active_idx];
|
uni = &glsl->uniforms[glsl->active_idx];
|
||||||
|
|
||||||
buffer = short_buffer;
|
buffer = short_buffer;
|
||||||
|
|
||||||
if (coords->vertices > 4)
|
if (coords->vertices > 4)
|
||||||
{
|
{
|
||||||
size_t elems = 0;
|
size_t elems = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user