Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The glsl120 const array code fails, even though spec suggests it shou…
…ldn't.

--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 29, 2008
1 parent 1c6f798 commit 86cd673
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoshader.c
Expand Up @@ -2333,6 +2333,9 @@ static void emit_GLSL_const_array(Context *ctx, const ConstantsList *clist,
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.
Expand Down Expand Up @@ -2368,6 +2371,7 @@ static void emit_GLSL_const_array(Context *ctx, const ConstantsList *clist,
} // if

else
#endif
{
// stock GLSL 1.0 can't do constant arrays, so make a global array
// and assign all entries at the start of the mainline...
Expand Down

0 comments on commit 86cd673

Please sign in to comment.