Skip to content

Commit

Permalink
Patched to compile when built as C++ code.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed May 6, 2008
1 parent 66b5a57 commit 22a1ad9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mojoshader_opengl.c
Expand Up @@ -619,6 +619,7 @@ MOJOSHADER_glProgram *MOJOSHADER_glLinkProgram(MOJOSHADER_glShader *vshader,
MOJOSHADER_glProgram *retval = NULL;
const GLhandleARB program = ctx->glCreateProgramObject();
int numregs = 0;
uint32 const_count = 0;

if (vshader != NULL) ctx->glAttachObject(program, vshader->handle);
if (pshader != NULL) ctx->glAttachObject(program, pshader->handle);
Expand Down Expand Up @@ -660,8 +661,6 @@ MOJOSHADER_glProgram *MOJOSHADER_glLinkProgram(MOJOSHADER_glShader *vshader,
retval->fragment = pshader;
retval->refcount = 1;

uint32 const_count = 0;

if (vshader != NULL)
{
if (const_count < vshader->parseData->constant_count)
Expand Down

0 comments on commit 22a1ad9

Please sign in to comment.