Skip to content
Permalink
Browse files
Fixed a few things clang's static analysis reported.
  • Loading branch information
icculus committed Oct 20, 2011
1 parent 5929b22 commit dd8c2b5e82482e3aad1f3ea4c6493d0e2e80b7c7

File 3 of 4 in dd8c2b5

@@ -1687,16 +1687,11 @@ static void update_enabled_arrays(void)

void MOJOSHADER_glBindProgram(MOJOSHADER_glProgram *program)
{
GLuint handle = 0;

if (program == ctx->bound_program)
return; // nothing to do.

if (program != NULL)
{
handle = program->handle;
program->refcount++;
} // if

memset(ctx->want_attr, '\0', sizeof (ctx->want_attr[0]) * ctx->max_attrs);

0 comments on commit dd8c2b5

Please sign in to comment.