From 86cd67386af8b292adbc38be97e0ddce8a85d460 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 29 Jun 2008 02:00:46 -0400 Subject: [PATCH] The glsl120 const array code fails, even though spec suggests it shouldn't. --HG-- branch : trunk --- mojoshader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mojoshader.c b/mojoshader.c index 5fc1aa22..e6a309c9 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -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. @@ -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...