Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Apparently we aren't using declared_attribute() now.
--HG--
branch : trunk
  • Loading branch information
icculus committed Aug 18, 2008
1 parent f9518c8 commit 381a258
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions mojoshader.c
Expand Up @@ -783,21 +783,6 @@ static inline int get_defined_register(Context *ctx, const RegisterType rtype,
return (reglist_exists(&ctx->defined_registers, rtype, regnum) != NULL);
} // get_defined_register

static const RegisterList *declared_attribute(Context *ctx,
const MOJOSHADER_usage usage,
const int index)
{
const RegisterList *item = ctx->attributes.next;
while (item != NULL)
{
if ((item->usage == usage) && (item->index == index))
return item;
item = item->next;
} // while

return NULL;
} // declared_attribute

static void add_attribute_register(Context *ctx, const RegisterType rtype,
const int regnum, const MOJOSHADER_usage usage,
const int index, const int writemask, int flags)
Expand Down

0 comments on commit 381a258

Please sign in to comment.