renderer: fix some minor sparse warnings

macos/master
Dave Airlie 10 years ago
parent aca150b35b
commit 59b9cb549a
  1. 2
      src/virglrenderer.c
  2. 2
      src/vrend_blitter.c
  3. 2
      src/vrend_renderer.c

@ -43,7 +43,7 @@
#include "virglrenderer.h" #include "virglrenderer.h"
#include "virgl_egl.h" #include "virgl_egl.h"
struct virgl_egl *egl_info; static struct virgl_egl *egl_info;
/* new API - just wrap internal API for now */ /* new API - just wrap internal API for now */
int virgl_renderer_resource_create(struct virgl_renderer_resource_create_args *args, struct iovec *iov, uint32_t num_iovs) int virgl_renderer_resource_create(struct virgl_renderer_resource_create_args *args, struct iovec *iov, uint32_t num_iovs)

@ -540,7 +540,7 @@ void vrend_renderer_blit_gl(struct vrend_context *ctx,
glUniform1i(samp_loc, 0); glUniform1i(samp_loc, 0);
glVertexAttribPointer(pos_loc, 4, GL_FLOAT, GL_FALSE, 8 * sizeof(float), 0); glVertexAttribPointer(pos_loc, 4, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void *)0);
glVertexAttribPointer(tc_loc, 4, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void *)(4 * sizeof(float))); glVertexAttribPointer(tc_loc, 4, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void *)(4 * sizeof(float)));
glEnableVertexAttribArray(pos_loc); glEnableVertexAttribArray(pos_loc);

@ -976,7 +976,7 @@ static struct vrend_linked_shader_program *lookup_shader_program(struct vrend_co
return ent; return ent;
} }
} }
return 0; return NULL;
} }
static void vrend_destroy_program(struct vrend_linked_shader_program *ent) static void vrend_destroy_program(struct vrend_linked_shader_program *ent)

Loading…
Cancel
Save