Skip to content

Commit

Permalink
Patched to compile on Windows.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Jul 4, 2008
1 parent a3b1498 commit 043df8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mojoshader.c
Expand Up @@ -54,6 +54,7 @@
typedef unsigned int uint; // this is a printf() helper. don't use for code.

#ifdef _MSC_VER
#include <malloc.h>
#define snprintf _snprintf
typedef unsigned __int8 uint8;
typedef unsigned __int16 uint16;
Expand Down
4 changes: 2 additions & 2 deletions mojoshader_opengl.c
Expand Up @@ -1040,7 +1040,7 @@ static void program_unref(MOJOSHADER_glProgram *program)
{
if (program != NULL)
{
int i;
uint32 i;
const uint32 refcount = program->refcount;
if (refcount > 1)
program->refcount--;
Expand Down Expand Up @@ -1238,7 +1238,7 @@ MOJOSHADER_glProgram *MOJOSHADER_glLinkProgram(MOJOSHADER_glShader *vshader,
link_program_fail:
if (retval != NULL)
{
int i;
uint32 i;
for (i = 0; i < retval->uniform_count; i++)
Free(retval->uniforms[i].uniform_array_buffer);
Free(retval->samplers);
Expand Down

0 comments on commit 043df8e

Please sign in to comment.