From 22a1ad9e171c6894ac96adc32d5a6880bfe4abce Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 6 May 2008 00:30:44 -0400 Subject: [PATCH] Patched to compile when built as C++ code. --HG-- branch : trunk --- mojoshader_opengl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mojoshader_opengl.c b/mojoshader_opengl.c index ab255bcb..40427d7f 100644 --- a/mojoshader_opengl.c +++ b/mojoshader_opengl.c @@ -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); @@ -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)