diff options
author | Brian Paul <[email protected]> | 2015-02-28 08:57:27 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-03-02 08:55:30 -0700 |
commit | c7136ff64691efec1bf58b34019e5283a751f67b (patch) | |
tree | 2e1ac0d2b4ac6536f4df758c5f57bdc8289df5d4 /src/mesa/program/prog_execute.c | |
parent | 16f7b7727569758a4df9c2bae3ca3a0de683960d (diff) |
mesa/program: replace Elements() with ARRAY_SIZE()
Acked-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_execute.c')
-rw-r--r-- | src/mesa/program/prog_execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c index ac813324cb4..dc4919ae828 100644 --- a/src/mesa/program/prog_execute.c +++ b/src/mesa/program/prog_execute.c @@ -124,7 +124,7 @@ get_src_register_pointer(const struct prog_src_register *source, return (GLfloat *) prog->Parameters->ParameterValues[reg]; case PROGRAM_SYSTEM_VALUE: - assert(reg < (GLint) Elements(machine->SystemValues)); + assert(reg < (GLint) ARRAY_SIZE(machine->SystemValues)); return machine->SystemValues[reg]; default: |