Limit texture units to 8 to avoid buffer overflows