Skip to content

Commit

Permalink
Added some FIXMEs.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 5, 2009
1 parent c7758d0 commit 959f0e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mojoshader.c
Expand Up @@ -6918,6 +6918,15 @@ static char *alloc_varname(Context *ctx, const RegisterList *reg)
} // alloc_varname


// !!! FIXME: this code is sort of hard to follow:
// !!! FIXME: "var->used" only applies to arrays (at the moment, at least,
// !!! FIXME: but this might be buggy at a later time?), and this code
// !!! FIXME: relies on that.
// !!! FIXME: "variables" means "things we found in a CTAB" but it's not
// !!! FIXME: all registers, etc.
// !!! FIXME: "const_array" means an array for d3d "const" registers (c0, c1,
// !!! FIXME: etc), but not a constant array, although they _can_ be.
// !!! FIXME: It's just a mess. :/
static MOJOSHADER_uniform *build_uniforms(Context *ctx)
{
const size_t len = sizeof (MOJOSHADER_uniform) * ctx->uniform_count;
Expand Down Expand Up @@ -6956,6 +6965,7 @@ static MOJOSHADER_uniform *build_uniforms(Context *ctx)
{
int skip = 0;

// !!! FIXME: does this fail if written > ctx->uniform_count?
if (item == NULL)
{
fail(ctx, "BUG: mismatched uniform list and count");
Expand Down

0 comments on commit 959f0e9

Please sign in to comment.