Skip to content

Commit

Permalink
Fixed compiler warnings.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Jul 31, 2008
1 parent e414a2d commit 02af59a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mojoshader.c
Expand Up @@ -2333,20 +2333,20 @@ static void emit_GLSL_const_array(Context *ctx, const ConstantsList *clist,
int base, int size)
{
const char *varname = get_GLSL_const_array_varname(ctx, base, size);
const char *cstr = NULL;
const int origscratch = ctx->scratchidx;
int i;

#if 0
// !!! FIXME: fails on Nvidia's and Apple's GL, even with #version 120.
// !!! FIXME: (the 1.20 spec says it should work, though, I think...)
if (ctx->support_glsl120)
{
// GLSL 1.20 can do constant arrays.
const char *cstr = NULL;
const int origscratch = ctx->scratchidx;
push_output(ctx, &ctx->globals);
output_line(ctx, "const vec4 %s[%d] = vec4[%d](", varname, size, size);
ctx->indent++;

int i;
for (i = 0; i < size; i++)
{
while (clist->constant.type != MOJOSHADER_UNIFORM_FLOAT)
Expand Down

0 comments on commit 02af59a

Please sign in to comment.